[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:01 UTC 2010
The following commit has been merged in the upstream branch:
commit a18769da31e03e05277d6ad52ca1f38acee5ecbd
Author: Luke Kanies <luke at reductivelabs.com>
Date: Tue Jan 19 23:40:59 2010 -0800
Cleaning up the report tests a bit
Signed-off-by: Luke Kanies <luke at reductivelabs.com>
diff --git a/spec/unit/transaction/report.rb b/spec/unit/transaction/report.rb
index 5be625e..8476444 100755
--- a/spec/unit/transaction/report.rb
+++ b/spec/unit/transaction/report.rb
@@ -79,27 +79,28 @@ describe Puppet::Transaction::Report do
Puppet::Util::Cacher.expire
end
end
-end
-describe Puppet::Transaction::Report, " when computing exit status" do
- it "should compute 2 if changes present" do
- report = Puppet::Transaction::Report.new
- report.newmetric("changes", {:total => 1})
- report.newmetric("resources", {:failed => 0})
- report.exit_status.should == 2
- end
+ describe "when computing exit status" do
+ it "should produce 2 if changes are present" do
+ report = Puppet::Transaction::Report.new
+ report.newmetric("changes", {:total => 1})
+ report.newmetric("resources", {:failed => 0})
+ report.exit_status.should == 2
+ end
- it "should compute 4 if failures present" do
- report = Puppet::Transaction::Report.new
- report.newmetric("changes", {:total => 0})
- report.newmetric("resources", {:failed => 1})
- report.exit_status.should == 4
- end
+ it "should produce 4 if failures are present" do
+ report = Puppet::Transaction::Report.new
+ report.newmetric("changes", {:total => 0})
+ report.newmetric("resources", {:failed => 1})
+ report.exit_status.should == 4
+ end
- it "should compute 6 if both changes and present" do
- report = Puppet::Transaction::Report.new
- report.newmetric("changes", {:total => 1})
- report.newmetric("resources", {:failed => 1})
- report.exit_status.should == 6
+ it "should produce 6 if both changes and failures are present" do
+ report = Puppet::Transaction::Report.new
+ report.newmetric("changes", {:total => 1})
+ report.newmetric("resources", {:failed => 1})
+ report.exit_status.should == 6
+ end
end
end
+
--
Puppet packaging for Debian
More information about the Pkg-puppet-devel
mailing list