summaryrefslogtreecommitdiffstats
path: root/test/utility_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/utility_test.rb')
-rw-r--r--test/utility_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/utility_test.rb b/test/utility_test.rb
index 1435d97..2de6c89 100644
--- a/test/utility_test.rb
+++ b/test/utility_test.rb
@@ -3,15 +3,15 @@ require 'test_helper'
class UtilityTest < Test::Unit::TestCase
include HCl::Utility
- should "convert decimal input when converting time2float" do
+ def test_time2float_decimal
assert_equal 2.5, time2float("2.5")
end
- should "convert HH:MM input when converting time2float" do
+ def test_time2float_hhmm
assert_equal 2.5, time2float("2:30")
end
- should "assume decimal input when converting time2float" do
+ def test_time2float_assume_decimal
assert_equal 2.0, time2float("2")
end
end