diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-07-20 10:44:36 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-07-20 14:39:01 -0700 |
commit | 09a488456aecf2b4ef7f200546b281cabda56e2f (patch) | |
tree | 84c0d478916d97b2a17e1d45e0760c734600e304 /activerecord/test/cases/adapters | |
parent | 993d0f6477c6dce4eb207578c1d0970cec859447 (diff) | |
download | rails-09a488456aecf2b4ef7f200546b281cabda56e2f.tar.gz rails-09a488456aecf2b4ef7f200546b281cabda56e2f.tar.bz2 rails-09a488456aecf2b4ef7f200546b281cabda56e2f.zip |
bigdecimal should be typecast to a float on sqlite3. fixes #2162
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 0d9db92447..e0152e7ccf 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_s('F'), @conn.type_cast(bd, nil) + assert_equal bd.to_f, @conn.type_cast(bd, nil) end def test_type_cast_unknown |