Skip to content

Commit 20f91a8

Browse files
authored
Merge pull request #782 from aidanharan/update-query-cache-test
Rails 6: Update query cache test
2 parents ef35bcc + 764aa3d commit 20f91a8

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
@@ -798,10 +798,11 @@ class PrimaryKeysTest < ActiveRecord::TestCase
798798

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

0 commit comments

Comments
 (0)