diff options
| author | Zack Hobson | 2013-11-21 12:02:47 -0800 | 
|---|---|---|
| committer | Zack Hobson | 2013-11-21 12:06:52 -0800 | 
| commit | 125133158e4d021526638789848b238ecd268f49 (patch) | |
| tree | 404e2c6db5e8f85d09943e22ed3f2fd7908faf5b /test/utility_test.rb | |
| parent | 86ff02c8380fc50cfa7e0d4e6d0cfd7be56fb633 (diff) | |
| download | hcl-125133158e4d021526638789848b238ecd268f49.tar.bz2 | |
Test and dev improvements
* removed dependency on shoulda
* added bundler support for dev/testing
* test coverage reporting
* added some command tests
Diffstat (limited to 'test/utility_test.rb')
| -rw-r--r-- | test/utility_test.rb | 6 | 
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  | 
