Skip to content
This repository
Browse code

Fix test failure for ruby 1.8.

BigDecimal.new needs to take a string rather than an integer in ruby 1.8.
  • Loading branch information...
commit cbdfaf2e2982cea5bc416dbc8b77f2fb84a7c19e 1 parent 00e0b25
Dylan Thacker-Smith dylanahsmith authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  activerecord/test/cases/relation/where_test.rb
2  activerecord/test/cases/relation/where_test.rb
@@ -52,7 +52,7 @@ def test_where_with_boolean_for_string_column
52 52 end
53 53
54 54 def test_where_with_decimal_for_string_column
55   - count = Post.where(:title => BigDecimal.new(0)).count
  55 + count = Post.where(:title => BigDecimal.new('0')).count
56 56 assert_equal 0, count
57 57 end
58 58

0 comments on commit cbdfaf2

Please sign in to comment.
Something went wrong with that request. Please try again.