Permalink
Browse files

Stop depending on strange platform specific rounding behaviour in the…

… number helper tests

git-svn-id: http://svn-commit.rubyonrails.org/rails/branches/1-2-stable@6680 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
NZKoz committed May 6, 2007
1 parent a74560f commit cfcc188dd1ad9a697517050696b2415e404adcc4
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/test/template/number_helper_test.rb
@@ -22,7 +22,7 @@ def test_number_to_phone
def test_number_to_currency
assert_equal("$1,234,567,890.50", number_to_currency(1234567890.50))
assert_equal("$1,234,567,890.51", number_to_currency(1234567890.506))
- assert_equal("$1,234,567,890", number_to_currency(1234567890.50, {:precision => 0}))
+ assert_equal("$1,234,567,891", number_to_currency(1234567890.51, {:precision => 0}))
assert_equal("$1,234,567,890.5", number_to_currency(1234567890.50, {:precision => 1}))
assert_equal("£1234567890,50", number_to_currency(1234567890.50, {:unit => "£", :separator => ",", :delimiter => ""}))
assert_equal("$1,234,567,890.50", number_to_currency("1234567890.50"))

0 comments on commit cfcc188

Please sign in to comment.