diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2010-05-22 16:38:04 -0300 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2010-05-24 20:54:38 -0700 |
commit | 47d568ed3fc701934ebe80b276f3d8bf6951c93f (patch) | |
tree | f5e40c7df81465271ab0f2fdfbb53d777afbaa43 /activerecord/test | |
parent | f53a6d814966e0ea039bde680b0fc3814236641c (diff) | |
download | rails-47d568ed3fc701934ebe80b276f3d8bf6951c93f.tar.gz rails-47d568ed3fc701934ebe80b276f3d8bf6951c93f.tar.bz2 rails-47d568ed3fc701934ebe80b276f3d8bf6951c93f.zip |
Refactor calculation test to remove unneeded SQLite special case.
[#4633]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/calculations_test.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/activerecord/test/cases/calculations_test.rb b/activerecord/test/cases/calculations_test.rb index 8473150338..329dd7d761 100644 --- a/activerecord/test/cases/calculations_test.rb +++ b/activerecord/test/cases/calculations_test.rb @@ -287,11 +287,8 @@ class CalculationsTest < ActiveRecord::TestCase # Oracle adapter returns floating point value 636.0 after SUM if current_adapter?(:OracleAdapter) assert_equal 636, Account.sum("2 * credit_limit") - elsif current_adapter?(:SQLite3Adapter) - # Future versions of the SQLite3 adapter will return a number - assert_equal 636, Account.sum("2 * credit_limit").to_i else - assert_equal '636', Account.sum("2 * credit_limit") + assert_equal 636, Account.sum("2 * credit_limit").to_i end end |