Skip to content

Commit c07f937

Browse files
committed
Another test coerced.
1 parent c5a859f commit c07f937

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

test/cases/coerced_tests.rb

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
297307
require 'models/topic'
298308
module 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'
315341
class 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+
332361
end
333362

334363

0 commit comments

Comments
 (0)