Permalink
Browse files

Fix BigDecimal Typecast on 1.8.7

  • Loading branch information...
1 parent 663c9a6 commit a316c09900782326aa637e8b164f1d097d6ddacc @robertomiranda robertomiranda committed Feb 8, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/test/cases/relation/where_test.rb
@@ -52,7 +52,7 @@ def test_where_with_boolean_for_string_column
end
def test_where_with_decimal_for_string_column
- count = Post.where(:title => BigDecimal.new(0)).count
+ count = Post.where(:title => BigDecimal.new('0')).count
assert_equal 0, count
end

0 comments on commit a316c09

Please sign in to comment.