diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-04-13 15:34:08 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-04-14 13:37:39 -0700 |
commit | 27f8c57f5f88304212a00cb8e32f8227755a7265 (patch) | |
tree | 9dfcb2c183677886e71a91bf3b9ccbe1909acb20 /activerecord/test/cases/adapters | |
parent | 8571facea3b51717b3c57c50b2deae5dbf997c6e (diff) | |
download | rails-27f8c57f5f88304212a00cb8e32f8227755a7265.tar.gz rails-27f8c57f5f88304212a00cb8e32f8227755a7265.tar.bz2 rails-27f8c57f5f88304212a00cb8e32f8227755a7265.zip |
inserting big decimals as strings works consistently among dbs, so use string form
Diffstat (limited to 'activerecord/test/cases/adapters')
-rw-r--r-- | activerecord/test/cases/adapters/sqlite3/quoting_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/adapters/sqlite3/quoting_test.rb b/activerecord/test/cases/adapters/sqlite3/quoting_test.rb index e0152e7ccf..0d9db92447 100644 --- a/activerecord/test/cases/adapters/sqlite3/quoting_test.rb +++ b/activerecord/test/cases/adapters/sqlite3/quoting_test.rb @@ -67,7 +67,7 @@ module ActiveRecord def test_type_cast_bigdecimal bd = BigDecimal.new '10.0' - assert_equal bd.to_f, @conn.type_cast(bd, nil) + assert_equal bd.to_s('F'), @conn.type_cast(bd, nil) end def test_type_cast_unknown |