# frozen_string_literal: true

require 'spec_helper'

describe 'regsubst' do
  # used to test the fact that expected result can be a regexp
  it { is_expected.to run.with_params('thisisatest', '^192', '254').and_return(/sat/) }
  it { is_expected.to run.with_params('thisisatest', 'sat', 'xyz').and_return(/ixyze/) }
  it { is_expected.to run.with_params('thisisatest', 'sat', 'xyz').and_return('thisixyzest') }
  it { is_expected.to run.with_params('thisisatest', 'sat', 'xyz').and_return(/^thisixyzest$/) }
end
