Skip to content

Commit f354e98

Browse files
committed
Fix typo
1 parent b0dbf8f commit f354e98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/cases/coerced_tests.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,7 @@ def test_in_batches_no_subqueries_for_whole_tables_batching_coerced
839839
# TODO: Remove coerced test when https://github.com/rails/rails/pull/49269 merged.
840840
coerce_tests! :test_in_batches_should_quote_batch_order
841841
def test_in_batches_should_quote_batch_order_coerced
842-
Post.connection
842+
c = Post.connection
843843
assert_sql(/ORDER BY #{Regexp.escape(c.quote_table_name('posts'))}\.#{Regexp.escape(c.quote_column_name('id'))}/) do
844844
Post.in_batches(of: 1) do |relation|
845845
assert_kind_of ActiveRecord::Relation, relation

0 commit comments

Comments
 (0)