summaryrefslogtreecommitdiffstats
path: root/spec/unit/resource_reference.rb
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2007-12-11 15:35:36 -0600
committerLuke Kanies <luke@madstop.com>2007-12-11 15:35:36 -0600
commitcb0c4eebb0a7b2fadc5e0487e1c692007cb8b2e5 (patch)
treeb4284addea69adf9d19028ff1bab94035b1c1827 /spec/unit/resource_reference.rb
parent7ac3bd79621f6c66cd3b5b7041aeba83c27c3602 (diff)
downloadpuppet-cb0c4eebb0a7b2fadc5e0487e1c692007cb8b2e5.tar.gz
puppet-cb0c4eebb0a7b2fadc5e0487e1c692007cb8b2e5.tar.xz
puppet-cb0c4eebb0a7b2fadc5e0487e1c692007cb8b2e5.zip
Renaming 'configuration' to 'catalog', fixing #954.
Diffstat (limited to 'spec/unit/resource_reference.rb')
-rwxr-xr-xspec/unit/resource_reference.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/unit/resource_reference.rb b/spec/unit/resource_reference.rb
index 93eeaa5b8..ef172d80a 100755
--- a/spec/unit/resource_reference.rb
+++ b/spec/unit/resource_reference.rb
@@ -42,7 +42,7 @@ describe Puppet::ResourceReference do
end
end
-describe Puppet::ResourceReference, "when resolving resources without a configuration" do
+describe Puppet::ResourceReference, "when resolving resources without a catalog" do
it "should be able to resolve builtin resources from their types" do
Puppet::Type.type(:file).expects(:[]).with("myfile").returns(:myfile)
Puppet::ResourceReference.new(:file, "myfile").resolve.should == :myfile
@@ -54,11 +54,11 @@ describe Puppet::ResourceReference, "when resolving resources without a configur
end
end
-describe Puppet::ResourceReference, "when resolving resources with a configuration" do
- it "should resolve all resources using the configuration" do
- config = mock 'configuration'
+describe Puppet::ResourceReference, "when resolving resources with a catalog" do
+ it "should resolve all resources using the catalog" do
+ config = mock 'catalog'
ref = Puppet::ResourceReference.new("foo::bar", "yay")
- ref.configuration = config
+ ref.catalog = config
config.expects(:resource).with("Foo::Bar[yay]").returns(:myresource)