aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template
diff options
context:
space:
mode:
authorBen Sharpe <bsharpe@gmail.com>2010-09-02 08:05:23 -0700
committerSantiago Pastorino <santiago@wyeworks.com>2010-09-05 09:56:13 -0300
commitb80cf265be083b158c915ccbb4af7ce5ac05aec7 (patch)
tree7a31965b1528e45b15031ffad587c362a84ba6ba /actionpack/test/template
parent708ee9c5ac6ef3ded22a716914a2c46136b5dfe0 (diff)
downloadrails-b80cf265be083b158c915ccbb4af7ce5ac05aec7.tar.gz
rails-b80cf265be083b158c915ccbb4af7ce5ac05aec7.tar.bz2
rails-b80cf265be083b158c915ccbb4af7ce5ac05aec7.zip
Fix number_to_human(0) exception [#5532 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.rb1
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 d27cec0a29..2a3bc13a16 100644
--- a/actionpack/test/template/number_helper_test.rb
+++ b/actionpack/test/template/number_helper_test.rb
@@ -184,6 +184,7 @@ class NumberHelperTest < ActionView::TestCase
end
def test_number_to_human
+ assert_equal '0', number_to_human(0)
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)