Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #9223 from robertomiranda/fix-bigdecimal-typecast

Fix BigDecimal Typecast on 1.8.7
  • Loading branch information...
commit f93d04677066b74ebb69f57028586126fc19228c 2 parents 663c9a6 + a316c09
@guilleiguaran guilleiguaran authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.