diff options
author | Dylan Smith <Dylan.Smith@shopify.com> | 2013-02-08 09:43:53 -0500 |
---|---|---|
committer | Dylan Smith <Dylan.Smith@shopify.com> | 2013-02-08 09:44:15 -0500 |
commit | cbdfaf2e2982cea5bc416dbc8b77f2fb84a7c19e (patch) | |
tree | 83b26337bfe155142c7cd6f63c5875c88cd1222a /activerecord/test/cases | |
parent | 00e0b258eefab192a2012df9cf0680d214c89504 (diff) | |
download | rails-cbdfaf2e2982cea5bc416dbc8b77f2fb84a7c19e.tar.gz rails-cbdfaf2e2982cea5bc416dbc8b77f2fb84a7c19e.tar.bz2 rails-cbdfaf2e2982cea5bc416dbc8b77f2fb84a7c19e.zip |
Fix test failure for ruby 1.8.
BigDecimal.new needs to take a string rather than an integer in ruby 1.8.
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/relation/where_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/relation/where_test.rb b/activerecord/test/cases/relation/where_test.rb index 0529945532..ba9df1651b 100644 --- a/activerecord/test/cases/relation/where_test.rb +++ b/activerecord/test/cases/relation/where_test.rb @@ -52,7 +52,7 @@ module ActiveRecord 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 |