Skip to content
Browse files

Refactor calculation test to remove unneeded SQLite special case.

[#4633]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
  • Loading branch information...
1 parent f53a6d8 commit 47d568ed3fc701934ebe80b276f3d8bf6951c93f @spastorino spastorino committed with jeremy May 22, 2010
Showing with 1 addition and 4 deletions.
  1. +1 −4 activerecord/test/cases/calculations_test.rb
View
5 activerecord/test/cases/calculations_test.rb
@@ -287,11 +287,8 @@ def test_should_sum_expression
# 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

0 comments on commit 47d568e

Please sign in to comment.
Something went wrong with that request. Please try again.