From e247b56d9941b4a636d3a3d9935d6b9cd9b199ea Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Mon, 11 Feb 2008 17:33:12 -0600 Subject: Changing some methods in the Compile class to be more internally consistent (switched store_resource to add_resource, and store_override to add_override). --- test/language/ast.rb | 2 +- test/language/functions.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'test') 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"})) -- cgit