[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, upstream, updated. 0.25.5-639-g8f94f35

test branch puppet-dev at googlegroups.com
Wed Jul 14 10:31:54 UTC 2010


The following commit has been merged in the upstream branch:
commit cbe2c49c8ef2fc53664461947919958be0a0631c
Author: Luke Kanies <luke at reductivelabs.com>
Date:   Thu Jan 21 17:45:02 2010 -0800

    Fixing test structure
    
    Signed-off-by: Luke Kanies <luke at reductivelabs.com>

diff --git a/spec/unit/resource/reference.rb b/spec/unit/resource/reference.rb
index fef48bb..7a97045 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

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list