Skip to content

Commit

Permalink
Fix assertion method call
Browse files Browse the repository at this point in the history
Follow up to rails#50382.

`assert_queries` was renamed to `assert_queries_count` in in rails#50373.
  • Loading branch information
jonathanhefner committed Jan 11, 2024
1 parent c5f3a81 commit 7da9209
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/test/cases/associations_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1228,7 +1228,7 @@ def test_multi_database_polymorphic_preload_with_same_table_name
# Expected
# SELECT FROM dogs ... (Dog)
# SELECT FROM dogs ... (OtherDog)
assert_queries(2) do
assert_queries_count(2) do
preloader = ActiveRecord::Associations::Preloader.new(records: [dog_comment, other_dog_comment], associations: :origin)
preloader.call
end
Expand Down

0 comments on commit 7da9209

Please sign in to comment.