summaryrefslogtreecommitdiffstats
path: root/spec/unit/node
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2007-11-13 11:24:22 -0600
committerLuke Kanies <luke@madstop.com>2007-11-13 11:24:22 -0600
commitffb4c2dbc7314b364d25e4f7be599ef05b767b44 (patch)
tree819cdb29053d004cfab70a22ea95a576b1608df7 /spec/unit/node
parentb65fb8316e10fb31c4ac9d0af75bb3e7f452d312 (diff)
downloadpuppet-ffb4c2dbc7314b364d25e4f7be599ef05b767b44.tar.gz
puppet-ffb4c2dbc7314b364d25e4f7be599ef05b767b44.tar.xz
puppet-ffb4c2dbc7314b364d25e4f7be599ef05b767b44.zip
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.
Diffstat (limited to 'spec/unit/node')
-rwxr-xr-xspec/unit/node/configuration.rb1
1 files changed, 1 insertions, 0 deletions
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"