From cbe2c49c8ef2fc53664461947919958be0a0631c Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Thu, 21 Jan 2010 17:45:02 -0800 Subject: Fixing test structure Signed-off-by: Luke Kanies --- spec/unit/resource/reference.rb | 16 ++++++++-------- 1 file 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 -- cgit