spec/kitchen/util_spec.rb in test-kitchen-1.0.0.alpha.6 vs spec/kitchen/util_spec.rb in test-kitchen-1.0.0.alpha.7
- old
+ new
@@ -90,9 +90,13 @@
end
end
describe ".duration" do
+ it "turns nil into a zero" do
+ Kitchen::Util.duration(nil).must_equal "(0m0.00s)"
+ end
+
it "formats seconds to 2 digits" do
Kitchen::Util.duration(60).must_equal "(1m0.00s)"
end
it "formats large values into minutes and seconds" do