spec/strings_spec.rb in knjrbfw-0.0.79 vs spec/strings_spec.rb in knjrbfw-0.0.80
- old
+ new
@@ -48,7 +48,13 @@
res = Knj::Strings.secs_to_human_short_time(57)
raise "Expected '57s' but got '#{res}'." if res != "57s"
res = Knj::Strings.secs_to_human_short_time(185)
raise "Expected '3m' but got '#{res}'." if res != "3m"
+
+ res = Knj::Strings.secs_to_human_short_time(57, :secs => false)
+ raise "Expected '0m' but got '#{res}'." if res != "0m"
+
+ res = Knj::Strings.secs_to_human_short_time(120, :mins => false)
+ raise "Expected '0.0t' but got '#{res}'." if res != "0.0t"
end
end
\ No newline at end of file