summaryrefslogtreecommitdiffstats
path: root/test/lib
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2007-09-04 15:14:39 -0500
committerLuke Kanies <luke@madstop.com>2007-09-04 15:14:39 -0500
commit11b127bd6708a18b512ca5b3018ccff1200cc47a (patch)
tree55d6f42b78404d6e6058f5bef2e50b6bf06b7105 /test/lib
parent3b2efd2a4b32478b6c6a71e1421061405a0bb11e (diff)
downloadpuppet-11b127bd6708a18b512ca5b3018ccff1200cc47a.tar.gz
puppet-11b127bd6708a18b512ca5b3018ccff1200cc47a.tar.xz
puppet-11b127bd6708a18b512ca5b3018ccff1200cc47a.zip
Successfully modified all tests and code so that all language tests pass again. This is the majority of the work necessary to make the separate "configuration" object work.
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/puppettest/parsertesting.rb4
-rw-r--r--test/lib/puppettest/resourcetesting.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/test/lib/puppettest/parsertesting.rb b/test/lib/puppettest/parsertesting.rb
index 34aeca00a..9e90bbdd6 100644
--- a/test/lib/puppettest/parsertesting.rb
+++ b/test/lib/puppettest/parsertesting.rb
@@ -73,6 +73,8 @@ module PuppetTest::ParserTesting
unless config.topscope.source
raise "Could not find source for scope"
end
+ # Make the 'main' stuff
+ config.send(:evaluate_main)
config.topscope
end
@@ -404,5 +406,3 @@ module PuppetTest::ParserTesting
return trans
end
end
-
-# $Id$
diff --git a/test/lib/puppettest/resourcetesting.rb b/test/lib/puppettest/resourcetesting.rb
index e2176d5ef..54154d504 100644
--- a/test/lib/puppettest/resourcetesting.rb
+++ b/test/lib/puppettest/resourcetesting.rb
@@ -28,7 +28,7 @@ module PuppetTest::ResourceTesting
def mkresource(args = {})
args[:source] ||= "source"
- args[:scope] ||= stub :tags => []
+ args[:scope] ||= mkscope
{:type => "resource", :title => "testing",
:source => "source", :scope => "scope"}.each do |param, value|