@@ -158,7 +158,7 @@ class c inherits b { notify { hi: } }
158158 it 'makes $settings::strict available as string' do
159159 node = Puppet ::Node . new ( "testing" )
160160 catalog = compile_to_catalog ( <<-MANIFEST , node )
161- notify { 'test': message => $settings::strict == 'warning ' }
161+ notify { 'test': message => $settings::strict == 'error ' }
162162 MANIFEST
163163 expect ( catalog ) . to have_resource ( "Notify[test]" ) . with_parameter ( :message , true )
164164 end
@@ -174,7 +174,7 @@ class c inherits b { notify { hi: } }
174174 it 'makes all server settings available as $settings::all_local hash' do
175175 node = Puppet ::Node . new ( "testing" )
176176 catalog = compile_to_catalog ( <<-MANIFEST , node )
177- notify { 'test': message => $settings::all_local['strict'] == 'warning ' }
177+ notify { 'test': message => $settings::all_local['strict'] == 'error ' }
178178 MANIFEST
179179 expect ( catalog ) . to have_resource ( "Notify[test]" ) . with_parameter ( :message , true )
180180 end
@@ -694,7 +694,7 @@ class a { $_a = 10}
694694 end
695695
696696 it 'a missing variable as default causes an evaluation error' do
697- # when strict variables not on
697+ # strict mode on by default for 8.x
698698 expect {
699699 compile_to_catalog ( <<-MANIFEST )
700700 class a ($b=$x) { notify {test: message=>"yes ${undef == $b}" } }
@@ -703,9 +703,9 @@ class a ($b=$x) { notify {test: message=>"yes ${undef == $b}" } }
703703 } . to raise_error ( /Evaluation Error: Unknown variable: 'x'/ )
704704 end
705705
706- it 'a missing variable as default value becomes undef when strict_variables is off' do
707- # strict variables on by default for 8.x
706+ it 'a missing variable as default value becomes undef when strict mode is off' do
708707 Puppet [ :strict_variables ] = false
708+ Puppet [ :strict ] = :warning
709709 catalog = compile_to_catalog ( <<-MANIFEST )
710710 class a ($b=$x) { notify {test: message=>"yes ${undef == $b}" } }
711711 include a
0 commit comments