Skip to content

Commit

Permalink
Add a test that used to fail but is fixed now [#3417 state:resolved]
Browse files Browse the repository at this point in the history
  • Loading branch information
wycats committed Apr 13, 2010
1 parent 54533d2 commit 36f3634
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions actionpack/test/template/number_helper_test.rb
Expand Up @@ -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)
Expand Down

0 comments on commit 36f3634

Please sign in to comment.