From ffb4c2dbc7314b364d25e4f7be599ef05b767b44 Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Tue, 13 Nov 2007 11:24:22 -0600 Subject: This commit is the first run at removing all global references to resources. It deprecates the class-level [] and []= methods, used for so long to provide closure behaviour but now unnecessary with the node configuration's ability to function as a resource container. All of the spec tests pass, but there is much to do to make the test/ tests pass, I expect. --- spec/unit/node/configuration.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'spec/unit/node') diff --git a/spec/unit/node/configuration.rb b/spec/unit/node/configuration.rb index 5780d4fbb..7fda4e9a8 100755 --- a/spec/unit/node/configuration.rb +++ b/spec/unit/node/configuration.rb @@ -540,6 +540,7 @@ describe Puppet::Node::Configuration, " when creating a relationship graph" do @config = Puppet::Node::Configuration.new("host") @compone = Puppet::Type::Component.create :name => "one" @comptwo = Puppet::Type::Component.create :name => "two", :require => ["class", "one"] + @file = Puppet::Type.type(:file) @one = @file.create :path => "/one" @two = @file.create :path => "/two" -- cgit