diff options
-rw-r--r-- | lib/puppet/status.rb | 8 | ||||
-rw-r--r-- | spec/unit/status.rb | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/lib/puppet/status.rb b/lib/puppet/status.rb index f587a5a2a..aaec5d3ba 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 b13b246af..334b9b50a 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 |