diff options
Diffstat (limited to 'spec/unit/parser/scope_spec.rb')
-rwxr-xr-x | spec/unit/parser/scope_spec.rb | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/spec/unit/parser/scope_spec.rb b/spec/unit/parser/scope_spec.rb index 29dca38f4..94192a693 100755 --- a/spec/unit/parser/scope_spec.rb +++ b/spec/unit/parser/scope_spec.rb @@ -11,7 +11,7 @@ describe Puppet::Parser::Scope do @scope.compiler = Puppet::Parser::Compiler.new(Puppet::Node.new("foo")) @scope.parent = @topscope end - + it "should be able to store references to class scopes" do lambda { @scope.class_set "myname", "myscope" }.should_not raise_error end @@ -500,8 +500,7 @@ describe Puppet::Parser::Scope do assert_equal("value", scope.lookupvar("::test"), "did not look up qualified value correctly") tests.each do |input, output| assert_nothing_raised("Failed to scan %s" % input.inspect) do - assert_equal(output, scope.strinterp(input), - 'did not parserret %s correctly' % input.inspect) + assert_equal(output, scope.strinterp(input), 'did not parserret %s correctly' % input.inspect) end end @@ -513,11 +512,17 @@ describe Puppet::Parser::Scope do %w{d f h l w z}.each do |l| string = "\\" + l assert_nothing_raised do - assert_equal(string, scope.strinterp(string), + + assert_equal( + string, scope.strinterp(string), + 'did not parserret %s correctly' % string) end - assert(logs.detect { |m| m.message =~ /Unrecognised escape/ }, + + assert( + logs.detect { |m| m.message =~ /Unrecognised escape/ }, + "Did not get warning about escape sequence with %s" % string) logs.clear end |