diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2008-02-02 02:59:10 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-02-02 02:59:10 +0000 |
commit | 9d79e0668d6a51573170ee568c5bac6717ec1a0c (patch) | |
tree | a0f80929db98c9751751d01e598d45f43a4cc1e6 /actionpack/test | |
parent | b84a33ddd1f3c309a0bf13f487c7729eb6adccaa (diff) | |
download | rails-9d79e0668d6a51573170ee568c5bac6717ec1a0c.tar.gz rails-9d79e0668d6a51573170ee568c5bac6717ec1a0c.tar.bz2 rails-9d79e0668d6a51573170ee568c5bac6717ec1a0c.zip |
Fix number_to_human_size incorrectly removing trailing zeros. Closes #10099 [libc, developingchris]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8774 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/template/number_helper_test.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/test/template/number_helper_test.rb b/actionpack/test/template/number_helper_test.rb index b2f95cea9f..29cb9c1701 100644 --- a/actionpack/test/template/number_helper_test.rb +++ b/actionpack/test/template/number_helper_test.rb @@ -87,6 +87,7 @@ class NumberHelperTest < Test::Unit::TestCase assert_equal '1.01 KB', number_to_human_size(1.0100.kilobytes, 4) assert_equal '10 KB', number_to_human_size(10.000.kilobytes, 4) assert_equal '1 Byte', number_to_human_size(1.1) + assert_equal '10 Bytes', number_to_human_size(10) assert_nil number_to_human_size('x') assert_nil number_to_human_size(nil) end |