summaryrefslogtreecommitdiffstats
path: root/spec/unit/node
diff options
context:
space:
mode:
authorLuke Kanies <luke@reductivelabs.com>2010-01-07 17:23:31 -0800
committertest branch <puppet-dev@googlegroups.com>2010-02-17 06:50:53 -0800
commitd0389f4d16efbeccf47d6cd2f1b0854ccb1c88d5 (patch)
tree3a3060ac94be20b25742f5ec956e95c8ff3633d8 /spec/unit/node
parent67ef78d9f231661d0fdd6260d470cf0d06f1bac2 (diff)
downloadpuppet-d0389f4d16efbeccf47d6cd2f1b0854ccb1c88d5.tar.gz
puppet-d0389f4d16efbeccf47d6cd2f1b0854ccb1c88d5.tar.xz
puppet-d0389f4d16efbeccf47d6cd2f1b0854ccb1c88d5.zip
Renaming Parser::ResourceType to Resource::Type
Basically, these classes (ResourceType and ResourceTypeCollection) don't really belong in Parser, so I'm moving them to the Resource namespace. This will be where anything RAL-related goes from now on, and as we migrate functionality out of Puppet::Type, it should go here. Signed-off-by: Luke Kanies <luke@reductivelabs.com>
Diffstat (limited to 'spec/unit/node')
-rwxr-xr-xspec/unit/node/environment.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/unit/node/environment.rb b/spec/unit/node/environment.rb
index 26d9aabe1..81981973d 100755
--- a/spec/unit/node/environment.rb
+++ b/spec/unit/node/environment.rb
@@ -46,12 +46,12 @@ describe Puppet::Node::Environment do
describe "when managing known resource types" do
before do
@env = Puppet::Node::Environment.new("dev")
- @collection = Puppet::Parser::ResourceTypeCollection.new(@env)
+ @collection = Puppet::Resource::TypeCollection.new(@env)
@collection.stubs(:perform_initial_import)
end
it "should create a resource type collection if none exists" do
- Puppet::Parser::ResourceTypeCollection.expects(:new).with(@env).returns @collection
+ Puppet::Resource::TypeCollection.expects(:new).with(@env).returns @collection
@env.known_resource_types.should equal(@collection)
end
@@ -61,7 +61,7 @@ describe Puppet::Node::Environment do
it "should perform the initial import when creating a new collection" do
@collection.expects(:perform_initial_import)
- Puppet::Parser::ResourceTypeCollection.expects(:new).returns @collection
+ Puppet::Resource::TypeCollection.expects(:new).returns @collection
@env.known_resource_types
end
@@ -69,7 +69,7 @@ describe Puppet::Node::Environment do
it "should create and return a new collection rather than returning a stale collection" do
@env.known_resource_types.expects(:stale?).returns true
- Puppet::Parser::ResourceTypeCollection.expects(:new).returns @collection
+ Puppet::Resource::TypeCollection.expects(:new).returns @collection
@env.known_resource_types.should equal(@collection)
end