Skip to content

Commit 764aa3d

Browse files
committed
Updated test to match test in Rails
1 parent 6dcc1b7 commit 764aa3d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/cases/coerced_tests.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -797,10 +797,11 @@ class PrimaryKeysTest < ActiveRecord::TestCase
797797

798798
require 'models/task'
799799
class QueryCacheTest < ActiveRecord::TestCase
800+
# SQL Server adapter not in list of supported adapters in original test.
800801
coerce_tests! :test_cache_does_not_wrap_results_in_arrays
801802
def test_cache_does_not_wrap_results_in_arrays_coerced
802803
Task.cache do
803-
assert_kind_of Numeric, Task.connection.select_value("SELECT count(*) AS count_all FROM tasks")
804+
assert_equal 2, Task.connection.select_value("SELECT count(*) AS count_all FROM tasks")
804805
end
805806
end
806807

0 commit comments

Comments
 (0)