From d0389f4d16efbeccf47d6cd2f1b0854ccb1c88d5 Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Thu, 7 Jan 2010 17:23:31 -0800 Subject: 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 --- spec/unit/node/environment.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'spec/unit/node') 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 -- cgit