summaryrefslogtreecommitdiffstats
path: root/test/parser/parser.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/parser/parser.rb')
-rw-r--r--test/parser/parser.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/parser/parser.rb b/test/parser/parser.rb
index ab8366ba8..e29057e06 100644
--- a/test/parser/parser.rb
+++ b/test/parser/parser.rb
@@ -42,7 +42,8 @@ class TestParser < Test::Unit::TestCase
Puppet.debug("parsing failer %s" % file) if __FILE__ == $0
assert_raise(Puppet::ParseError) {
@parser.file = file
- @parser.parse
+ ast = @parser.parse
+ Puppet::Parser::Scope.new.evaluate(:ast => ast)
}
Puppet::Type.allclear
}
@@ -168,7 +169,7 @@ class TestParser < Test::Unit::TestCase
scope = Puppet::Parser::Scope.new()
scope.name = "parsetest"
scope.type = "parsetest"
- objects = scope.evaluate(ast)
+ objects = scope.evaluate(:ast => ast)
}
method = nil