Skip to content

Commit f0ca40a

Browse files
author
Aidan Haran
committed
Coerce and reimplement test
1 parent 3c89b8e commit f0ca40a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/cases/coerced_tests.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1843,6 +1843,14 @@ class LogSubscriberTest < ActiveRecord::TestCase
18431843
def test_vebose_query_logs_coerced
18441844
original_test_vebose_query_logs
18451845
end
1846+
1847+
# Bindings logged slightly differently.
1848+
coerce_tests! :test_where_in_binds_logging_include_attribute_names
1849+
def test_where_in_binds_logging_include_attribute_names_coerced
1850+
Developer.where(id: [1, 2, 3, 4, 5]).load
1851+
wait
1852+
assert_match(%{@0 = 1, @1 = 2, @2 = 3, @3 = 4, @4 = 5 [["id", nil], ["id", nil], ["id", nil], ["id", nil], ["id", nil]]}, @logger.logged(:debug).last)
1853+
end
18461854
end
18471855

18481856
class ActiveRecordSchemaTest < ActiveRecord::TestCase

0 commit comments

Comments
 (0)