We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0dbf8f commit f354e98Copy full SHA for f354e98
test/cases/coerced_tests.rb
@@ -839,7 +839,7 @@ def test_in_batches_no_subqueries_for_whole_tables_batching_coerced
839
# TODO: Remove coerced test when https://github.com/rails/rails/pull/49269 merged.
840
coerce_tests! :test_in_batches_should_quote_batch_order
841
def test_in_batches_should_quote_batch_order_coerced
842
- Post.connection
+ c = Post.connection
843
assert_sql(/ORDER BY #{Regexp.escape(c.quote_table_name('posts'))}\.#{Regexp.escape(c.quote_column_name('id'))}/) do
844
Post.in_batches(of: 1) do |relation|
845
assert_kind_of ActiveRecord::Relation, relation
0 commit comments