diff options
| author | Nick Lewis <nick@puppetlabs.com> | 2010-12-29 16:00:23 -0800 |
|---|---|---|
| committer | Paul Berry <paul@puppetlabs.com> | 2010-12-30 11:55:15 -0800 |
| commit | bd4a8a13a85e6d64c987765cb83b1ebd4a63a341 (patch) | |
| tree | 6550c457968e6769395fbb7d551caef5e90704fa /spec/unit/resource | |
| parent | 716ee1cd76a2b30c10e715bca3e22896d9c4e36f (diff) | |
| download | puppet-bd4a8a13a85e6d64c987765cb83b1ebd4a63a341.tar.gz puppet-bd4a8a13a85e6d64c987765cb83b1ebd4a63a341.tar.xz puppet-bd4a8a13a85e6d64c987765cb83b1ebd4a63a341.zip | |
(#5715) Make certain report attributes always present.
The attributes Puppet::Resource::Status#changed,
Puppet::Resource::Status#out_of_sync, and
Puppet::Transaction::Event#audited used to only appear in reports when
their state was true. Now they appear always.
Diffstat (limited to 'spec/unit/resource')
| -rwxr-xr-x | spec/unit/resource/status_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/unit/resource/status_spec.rb b/spec/unit/resource/status_spec.rb index 22d5fb4f9..3d9a84152 100755 --- a/spec/unit/resource/status_spec.rb +++ b/spec/unit/resource/status_spec.rb @@ -112,20 +112,20 @@ describe Puppet::Resource::Status do it "should not start with any changes" do @status.change_count.should == 0 - @status.changed.should be_false - @status.out_of_sync.should be_false + @status.changed.should == false + @status.out_of_sync.should == false end it "should not treat failure, audit, or noop events as changed" do ['failure', 'audit', 'noop'].each do |s| @status << Puppet::Transaction::Event.new(:status => s) end @status.change_count.should == 0 - @status.changed.should be_false + @status.changed.should == false end it "should not treat audit events as out of sync" do @status << Puppet::Transaction::Event.new(:status => 'audit') @status.out_of_sync_count.should == 0 - @status.out_of_sync.should be_false + @status.out_of_sync.should == false end ['failure', 'noop', 'success'].each do |event_status| |
