forked from rails-sqlserver/activerecord-sqlserver-adapter
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Coerce test_should_sum_expression(CalculationsTest) to pass.
- Loading branch information
1 parent
a9e37b5
commit c5baff7
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
require 'cases/sqlserver_helper' | ||
require 'models/company' | ||
|
||
class CalculationsTestSqlserver < ActiveRecord::TestCase | ||
end | ||
|
||
class CalculationsTest < ActiveRecord::TestCase | ||
|
||
COERCED_TESTS = [:test_should_sum_expression] | ||
|
||
include SqlserverCoercedTest | ||
|
||
fixtures :accounts | ||
|
||
def test_coerced_test_should_sum_expression | ||
assert_equal 636, Account.sum("2 * credit_limit") | ||
end | ||
|
||
|
||
end |