Permalink
Browse files

Ruby 1.9: fix number precision test

  • Loading branch information...
1 parent 425a02c commit dc1816da30eace9f292bfc57e21fe76a05ae8ea7 @jeremy jeremy committed Nov 5, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/test/template/number_helper_test.rb
@@ -88,7 +88,7 @@ def test_number_with_precision
assert_equal("111.00", number_with_precision(111, :precision => 2))
assert_equal("111.235", number_with_precision("111.2346"))
assert_equal("31.83", number_with_precision("31.825", :precision => 2))
- assert_equal("3268", number_with_precision((32.675 * 100.00), :precision => 0))
+ assert_equal("3268", number_with_precision((32.6751 * 100.00), :precision => 0))
assert_equal("112", number_with_precision(111.50, :precision => 0))
assert_equal("1234567892", number_with_precision(1234567891.50, :precision => 0))

0 comments on commit dc1816d

Please sign in to comment.