summaryrefslogtreecommitdiffstats
path: root/test/lib
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2007-09-07 12:10:59 -0500
committerLuke Kanies <luke@madstop.com>2007-09-07 12:10:59 -0500
commit9af79f117221d93f0d13a2c5ea3e886c6a9d939e (patch)
tree1470b73877b2d46c16f0e6ff4b15d4088b6a636f /test/lib
parent50874b2f1801b6ad2884803e98bbd220ef4af1bd (diff)
Fixing some failed tests. Mostly cleanup. Next is to make all of the user tests pass again, dammit.
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/puppettest/parsertesting.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/lib/puppettest/parsertesting.rb b/test/lib/puppettest/parsertesting.rb
index c71508803..eef0cd8bc 100644
--- a/test/lib/puppettest/parsertesting.rb
+++ b/test/lib/puppettest/parsertesting.rb
@@ -41,7 +41,7 @@ module PuppetTest::ParserTesting
)
end
- def mkconfig(parser = nil)
+ def mkcompile(parser = nil)
require 'puppet/network/handler/node'
parser ||= mkparser
node = mknode
@@ -67,15 +67,15 @@ module PuppetTest::ParserTesting
def mkscope(hash = {})
hash[:parser] ||= mkparser
- config ||= mkconfig(hash[:parser])
- config.topscope.source = (hash[:parser].findclass("", "") || hash[:parser].newclass(""))
+ compile ||= mkcompile(hash[:parser])
+ compile.topscope.source = (hash[:parser].findclass("", "") || hash[:parser].newclass(""))
- unless config.topscope.source
+ unless compile.topscope.source
raise "Could not find source for scope"
end
# Make the 'main' stuff
- config.send(:evaluate_main)
- config.topscope
+ compile.send(:evaluate_main)
+ compile.topscope
end
def classobj(name, hash = {})