summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Kanies <luke@reductivelabs.com>2010-01-21 17:45:02 -0800
committertest branch <puppet-dev@googlegroups.com>2010-02-17 06:50:53 -0800
commitcbe2c49c8ef2fc53664461947919958be0a0631c (patch)
tree2248c4679305b9eebc56c49774a9e55d45a28686
parent4bff5062a794adb8ebedb927cca33b182e88dfd2 (diff)
downloadpuppet-cbe2c49c8ef2fc53664461947919958be0a0631c.tar.gz
puppet-cbe2c49c8ef2fc53664461947919958be0a0631c.tar.xz
puppet-cbe2c49c8ef2fc53664461947919958be0a0631c.zip
Fixing test structure
Signed-off-by: Luke Kanies <luke@reductivelabs.com>
-rwxr-xr-xspec/unit/resource/reference.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/unit/resource/reference.rb b/spec/unit/resource/reference.rb
index fef48bb13..7a9704508 100755
--- a/spec/unit/resource/reference.rb
+++ b/spec/unit/resource/reference.rb
@@ -96,16 +96,16 @@ describe Puppet::Resource::Reference do
it "should not be considered equivalent to another reference if their titles do not match" do
Puppet::Resource::Reference.new("file", "/foo").should_not == Puppet::Resource::Reference.new("file", "/f")
end
-end
-describe Puppet::Resource::Reference, "when resolving resources with a catalog" do
- it "should resolve all resources using the catalog" do
- config = mock 'catalog'
- ref = Puppet::Resource::Reference.new("foo::bar", "yay")
- ref.catalog = config
+ describe "when resolving resources with a catalog" do
+ it "should resolve all resources using the catalog" do
+ config = mock 'catalog'
+ ref = Puppet::Resource::Reference.new("foo::bar", "yay")
+ ref.catalog = config
- config.expects(:resource).with("Foo::Bar[yay]").returns(:myresource)
+ config.expects(:resource).with("Foo::Bar[yay]").returns(:myresource)
- ref.resolve.should == :myresource
+ ref.resolve.should == :myresource
+ end
end
end