Permalink
Browse files

Add a test that used to fail but is fixed now [#3417 state:resolved]

  • Loading branch information...
1 parent 54533d2 commit 36f3634a6afbaf36015abb531d6bea6360654b81 @wycats wycats committed Apr 13, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 actionpack/test/template/number_helper_test.rb
@@ -188,6 +188,7 @@ def test_number_to_human_size_with_options_hash
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)

0 comments on commit 36f3634

Please sign in to comment.