diff options
author | Josh Kalderimis <josh.kalderimis@gmail.com> | 2011-03-16 19:03:25 +0100 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2011-03-16 15:11:00 -0300 |
commit | 0eae62525696b57fe7fc4bbb0bf9c0bc7ee4e480 (patch) | |
tree | 2159d4bf657f2b2d8136219bde286533979fdfd9 /actionpack/test/template | |
parent | e8458d37c56a94fae5f4c762b1767f67e10ddb43 (diff) | |
download | rails-0eae62525696b57fe7fc4bbb0bf9c0bc7ee4e480.tar.gz rails-0eae62525696b57fe7fc4bbb0bf9c0bc7ee4e480.tar.bz2 rails-0eae62525696b57fe7fc4bbb0bf9c0bc7ee4e480.zip |
fixes an issue with number_to_human when converting values which are less than 1 but greater than -1 [#6576 state:resolved]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Diffstat (limited to 'actionpack/test/template')
-rw-r--r-- | actionpack/test/template/number_helper_test.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/actionpack/test/template/number_helper_test.rb b/actionpack/test/template/number_helper_test.rb index c1b4bab903..c8d50ebf75 100644 --- a/actionpack/test/template/number_helper_test.rb +++ b/actionpack/test/template/number_helper_test.rb @@ -195,7 +195,9 @@ class NumberHelperTest < ActionView::TestCase def test_number_to_human assert_equal '-123', number_to_human(-123) - assert_equal '0', number_to_human(0) + assert_equal '-0.5', number_to_human(-0.5) + assert_equal '0', number_to_human(0) + assert_equal '0.5', number_to_human(0.5) assert_equal '123', number_to_human(123) assert_equal '1.23 Thousand', number_to_human(1234) assert_equal '12.3 Thousand', number_to_human(12345) |