diff options
author | wycats <wycats@gmail.com> | 2010-04-12 21:57:40 -0700 |
---|---|---|
committer | wycats <wycats@gmail.com> | 2010-04-12 21:57:40 -0700 |
commit | 36f3634a6afbaf36015abb531d6bea6360654b81 (patch) | |
tree | 4e5783ea22de22d09f2593a5718cee6436233767 /actionpack/test | |
parent | 54533d28ef4751baec9a369a199eaf7dd5d209b3 (diff) | |
download | rails-36f3634a6afbaf36015abb531d6bea6360654b81.tar.gz rails-36f3634a6afbaf36015abb531d6bea6360654b81.tar.bz2 rails-36f3634a6afbaf36015abb531d6bea6360654b81.zip |
Add a test that used to fail but is fixed now [#3417 state:resolved]
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 a21a1a68e4..14e81fc9dc 100644 --- a/actionpack/test/template/number_helper_test.rb +++ b/actionpack/test/template/number_helper_test.rb @@ -188,6 +188,7 @@ class NumberHelperTest < ActionView::TestCase assert_equal '10 KB', number_to_human_size(kilobytes(10.000), :precision => 4) assert_equal '1 TB', number_to_human_size(1234567890123, :precision => 1) assert_equal '500 MB', number_to_human_size(524288000, :precision=>3) + assert_equal '10 MB', number_to_human_size(9961472, :precision=>0) assert_equal '40 KB', number_to_human_size(41010, :precision => 1) assert_equal '40 KB', number_to_human_size(41100, :precision => 2) assert_equal '1.0 KB', number_to_human_size(kilobytes(1.0123), :precision => 2, :strip_insignificant_zeros => false) |