Skip to content

Commit

Permalink
(maint) getvar: update spec to match implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidS committed Jun 12, 2015
1 parent 8267dbc commit c9e093f
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions spec/functions/getvar_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,6 @@ class site::data { $foo = 'baz' }

it { is_expected.to run.with_params('site::data::foo').and_return('baz') }
it { is_expected.to run.with_params('::site::data::foo').and_return('baz') }

context 'with strict variable checking', :if => RSpec.configuration.strict_variables do
it { is_expected.to run.with_params('::site::data::bar').and_raise_error(ArgumentError, /undefined_variable/) }
end

context 'without strict variable checking', :unless => RSpec.configuration.strict_variables do
it { is_expected.to run.with_params('::site::data::bar').and_return(nil) }
end
it { is_expected.to run.with_params('::site::data::bar').and_return(nil) }
end
end

0 comments on commit c9e093f

Please sign in to comment.