test/outpost/report_test.rb in outpost-0.2.0 vs test/outpost/report_test.rb in outpost-0.2.1
- old
+ new
@@ -14,6 +14,18 @@
end
it "should report down when there are no statuses" do
assert_equal :down, Outpost::Report.summarize([])
end
+
+ it "should report warning when all are warning" do
+ assert_equal :warning, Outpost::Report.summarize([:warning, :warning])
+ end
+
+ it "should report warning when mixed up and warning" do
+ assert_equal :warning, Outpost::Report.summarize([:warning, :up, :up])
+ end
+
+ it "should report down when mixed down and warning" do
+ assert_equal :down, Outpost::Report.summarize([:warning, :down, :up])
+ end
end