File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff 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
2821end
You can’t perform that action at this time.
0 commit comments