Skip to content

Commit c9e093f

Browse files
committed
(maint) getvar: update spec to match implementation
1 parent 8267dbc commit c9e093f

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

spec/functions/getvar_spec.rb

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,6 @@ class site::data { $foo = 'baz' }
1616

1717
it { is_expected.to run.with_params('site::data::foo').and_return('baz') }
1818
it { is_expected.to run.with_params('::site::data::foo').and_return('baz') }
19-
20-
context 'with strict variable checking', :if => RSpec.configuration.strict_variables do
21-
it { is_expected.to run.with_params('::site::data::bar').and_raise_error(ArgumentError, /undefined_variable/) }
22-
end
23-
24-
context 'without strict variable checking', :unless => RSpec.configuration.strict_variables do
25-
it { is_expected.to run.with_params('::site::data::bar').and_return(nil) }
26-
end
19+
it { is_expected.to run.with_params('::site::data::bar').and_return(nil) }
2720
end
2821
end

0 commit comments

Comments
 (0)