Skip to content

Commit 4f41c24

Browse files
committed
Load schema for Author table in test
Otherwise this test will fail in isolation.
1 parent 4f2b9fe commit 4f41c24

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

activerecord/test/cases/instrumentation_test.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ def test_payload_name_on_update_all
4444
end
4545

4646
def test_payload_name_on_eager_load
47+
ActiveRecord::Base.schema_cache.add(Author.table_name)
4748
notification = capture_notifications("sql.active_record") { Book.eager_load(:author).to_a }
4849
assert_equal "Book Eager Load", notification.first.payload[:name]
4950
end

0 commit comments

Comments
 (0)