diff options
| author | Luke Kanies <luke@madstop.com> | 2008-02-11 17:59:34 -0600 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2008-02-11 17:59:34 -0600 |
| commit | fd0c5cbddec8dc53196a3b84e33e1000c3c0720f (patch) | |
| tree | cf5a4460e03f34285a81bce38e7ad2566c16edad /test/lib | |
| parent | 5ebaa8953155d091ed5b5c68c3862c9f695f03c0 (diff) | |
| download | puppet-fd0c5cbddec8dc53196a3b84e33e1000c3c0720f.tar.gz puppet-fd0c5cbddec8dc53196a3b84e33e1000c3c0720f.tar.xz puppet-fd0c5cbddec8dc53196a3b84e33e1000c3c0720f.zip | |
Changing the name of the Compile class to Compiler,
since it's stupid to have a class named after
a verb.
Diffstat (limited to 'test/lib')
| -rw-r--r-- | test/lib/puppettest/parsertesting.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/lib/puppettest/parsertesting.rb b/test/lib/puppettest/parsertesting.rb index 36bb68a77..1a08ecbae 100644 --- a/test/lib/puppettest/parsertesting.rb +++ b/test/lib/puppettest/parsertesting.rb @@ -5,7 +5,7 @@ module PuppetTest::ParserTesting include PuppetTest AST = Puppet::Parser::AST - Compile = Puppet::Parser::Compile + Compiler = Puppet::Parser::Compiler # A fake class that we can use for testing evaluation. class FakeAST @@ -41,10 +41,10 @@ module PuppetTest::ParserTesting ) end - def mkcompile(parser = nil) + def mkcompiler(parser = nil) parser ||= mkparser node = mknode - return Compile.new(node, parser) + return Compiler.new(node, parser) end def mknode(name = nil) @@ -64,15 +64,15 @@ module PuppetTest::ParserTesting def mkscope(hash = {}) hash[:parser] ||= mkparser - compile ||= mkcompile(hash[:parser]) - compile.topscope.source = (hash[:parser].findclass("", "") || hash[:parser].newclass("")) + compiler ||= mkcompiler(hash[:parser]) + compiler.topscope.source = (hash[:parser].findclass("", "") || hash[:parser].newclass("")) - unless compile.topscope.source + unless compiler.topscope.source raise "Could not find source for scope" end # Make the 'main' stuff - compile.send(:evaluate_main) - compile.topscope + compiler.send(:evaluate_main) + compiler.topscope end def classobj(name, hash = {}) |
