Skip to content

Commit

Permalink
Fix test failure for ruby 1.8.
Browse files Browse the repository at this point in the history
BigDecimal.new needs to take a string rather than an integer in ruby 1.8.
  • Loading branch information
dylanahsmith committed Feb 8, 2013
1 parent 00e0b25 commit cbdfaf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/test/cases/relation/where_test.rb
Expand Up @@ -52,7 +52,7 @@ def test_where_with_boolean_for_string_column
end end


def test_where_with_decimal_for_string_column def test_where_with_decimal_for_string_column
count = Post.where(:title => BigDecimal.new(0)).count count = Post.where(:title => BigDecimal.new('0')).count

This comment has been minimized.

Copy link
@gilfefer

gilfefer Jul 11, 2013

why is it like this?

assert_equal 0, count assert_equal 0, count
end end


Expand Down

0 comments on commit cbdfaf2

Please sign in to comment.