[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:48 UTC 2010


The following commit has been merged in the upstream branch:
commit f838389da0530201849958444dbbe60977935ad0
Author: Jesse Wolfe <jes5199 at gmail.com>
Date:   Wed Mar 17 12:03:09 2010 -0700

    Fix a failing test in #3115
    
    Signed-off-by: Jesse Wolfe <jes5199 at gmail.com>

diff --git a/lib/puppet/status.rb b/lib/puppet/status.rb
index f587a5a..aaec5d3 100644
--- a/lib/puppet/status.rb
+++ b/lib/puppet/status.rb
@@ -17,4 +17,12 @@ class Puppet::Status
     def self.from_pson( pson )
         self.new( pson )
     end
+
+    def name
+        "status"
+    end
+
+    def name=(name)
+        # NOOP
+    end
 end
diff --git a/spec/unit/status.rb b/spec/unit/status.rb
index b13b246..334b9b5 100644
--- a/spec/unit/status.rb
+++ b/spec/unit/status.rb
@@ -20,4 +20,12 @@ describe Puppet::Status do
         status = Puppet::Status.new( { "is_alive" => false } )
         status.status.should == { "is_alive" => false }
     end
+
+    it "should have a name" do
+        Puppet::Status.new.name
+    end
+
+    it "should allow a name to be set" do
+        Puppet::Status.new.name = "status"
+    end
 end

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list