summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-02-11 17:33:12 -0600
committerLuke Kanies <luke@madstop.com>2008-02-11 17:33:12 -0600
commite247b56d9941b4a636d3a3d9935d6b9cd9b199ea (patch)
tree97bf0cff97633125ed2fd76b14b8555723b296f3 /test
parent6a4cf6c978e8c8aebba4ed0f16d3de7bb31a0ce0 (diff)
downloadpuppet-e247b56d9941b4a636d3a3d9935d6b9cd9b199ea.tar.gz
puppet-e247b56d9941b4a636d3a3d9935d6b9cd9b199ea.tar.xz
puppet-e247b56d9941b4a636d3a3d9935d6b9cd9b199ea.zip
Changing some methods in the Compile class to
be more internally consistent (switched store_resource to add_resource, and store_override to add_override).
Diffstat (limited to 'test')
-rwxr-xr-xtest/language/ast.rb2
-rwxr-xr-xtest/language/functions.rb4
2 files changed, 3 insertions, 3 deletions
diff --git a/test/language/ast.rb b/test/language/ast.rb
index 9b1c1c1dc..9b8c74cfb 100755
--- a/test/language/ast.rb
+++ b/test/language/ast.rb
@@ -57,7 +57,7 @@ class TestAST < Test::Unit::TestCase
end
Puppet::Parser::Resource.expects(:new).with { |o| o.is_a?(Hash) }.returns(:override)
- scope.compile.expects(:store_override).with(:override)
+ scope.compile.expects(:add_override).with(:override)
ret = nil
assert_nothing_raised do
ret = ref.evaluate scope
diff --git a/test/language/functions.rb b/test/language/functions.rb
index edb39e9a7..b8f7d4313 100755
--- a/test/language/functions.rb
+++ b/test/language/functions.rb
@@ -318,7 +318,7 @@ class TestLangFunctions < Test::Unit::TestCase
virtual = mkresource(:type => type, :title => title,
:virtual => true, :params => {}, :scope => scope)
- scope.compile.store_resource(scope, virtual)
+ scope.compile.add_resource(scope, virtual)
ref = Puppet::Parser::Resource::Reference.new(
:type => type, :title => title,
@@ -385,7 +385,7 @@ class TestLangFunctions < Test::Unit::TestCase
"Multiple falses were somehow true")
# Now make sure we can test resources
- scope.compile.store_resource(scope, mkresource(:type => "file", :title => "/tmp/rahness",
+ scope.compile.add_resource(scope, mkresource(:type => "file", :title => "/tmp/rahness",
:scope => scope, :source => scope.source,
:params => {:owner => "root"}))