File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -294,6 +294,16 @@ def test_merge_options_coerced
294294
295295
296296
297+ require 'models/topic'
298+ class PersistenceTest < ActiveRecord ::TestCase
299+
300+ # We can not UPDATE identity columns.
301+ coerce_tests! :test_update_columns_changing_id
302+
303+ end
304+
305+
306+
297307require 'models/topic'
298308module ActiveRecord
299309 class PredicateBuilderTest < ActiveRecord ::TestCase
@@ -312,6 +322,22 @@ def test_registering_new_handlers_coerced
312322
313323
314324
325+ require 'models/task'
326+ class QueryCacheTest < ActiveRecord ::TestCase
327+
328+ coerce_tests! :test_cache_does_not_wrap_string_results_in_arrays
329+ def test_cache_does_not_wrap_string_results_in_arrays_coerced
330+ Task . cache do
331+ assert_kind_of Numeric , Task . connection . select_value ( "SELECT count(*) AS count_all FROM tasks" )
332+ end
333+ end
334+
335+ end
336+
337+
338+
339+
340+ require 'models/post'
315341class RelationTest < ActiveRecord ::TestCase
316342
317343 # We have implicit ordering, via FETCH.
@@ -329,6 +355,9 @@ def test_to_sql_on_eager_join_coerced
329355 assert_equal expected , actual
330356 end
331357
358+ # We are not doing order duplicate removal anymore.
359+ coerce_tests! :test_default_scope_order_with_scope_order
360+
332361end
333362
334363
You can’t perform that action at this time.
0 commit comments