Permalink
Browse files

Merge pull request #9224 from dylanahsmith/bigdecimal-takes-string

[3.2] Fix test failure for ruby 1.8.
  • Loading branch information...
2 parents 00e0b25 + cbdfaf2 commit 54af52de3f1a874be0f083d662f4a3c64d200bc4 @guilleiguaran guilleiguaran committed Feb 8, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/test/cases/relation/where_test.rb
View
2 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 54af52d

Please sign in to comment.