@@ -276,6 +276,8 @@ class a inherits parent { }
276276
277277 [ 'a:.b' , '::a::b' ] . each do |ref |
278278 it "does not resolve a qualified name on the form #{ ref } against top scope" do
279+ # strict_variables is off so behavior this test is trying to check isn't stubbed out
280+ Puppet [ :strict_variables ] = false
279281 expect_the_message_not_to_be ( "from topscope" ) do <<-"MANIFEST"
280282 class c {
281283 notify { 'something': message => "$#{ ref } " }
@@ -297,6 +299,8 @@ class a inherits parent { }
297299
298300 [ 'a:.b' , '::a::b' ] . each do |ref |
299301 it "does not resolve a qualified name on the form #{ ref } against node scope" do
302+ # strict_variables is off so behavior this test is trying to check isn't stubbed out
303+ Puppet [ :strict_variables ] = false
300304 expect_the_message_not_to_be ( "from node" ) do <<-MANIFEST
301305 class c {
302306 notify { 'something': message => "$a::b" }
@@ -626,8 +630,9 @@ class bar {
626630 end
627631 end
628632
629- it "finds nil when the only set variable is in the dynamic scope" do
630- expect_the_message_to_be ( nil ) do <<-MANIFEST
633+ it "raises an evaluation error when the only set variable is in the dynamic scope" do
634+ expect {
635+ compile_to_catalog ( <<-MANIFEST )
631636 node default {
632637 include baz
633638 }
@@ -641,7 +646,7 @@ class baz {
641646 include bar
642647 }
643648 MANIFEST
644- end
649+ } . to raise_error ( /Evaluation Error: Unknown variable: 'var'./ )
645650 end
646651
647652 it "ignores the value in the dynamic scope for a defined type" do
0 commit comments