1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix default scope with all_queries on reload test name

This commit is contained in:
Nikita Vasilevsky 2021-09-23 20:07:41 -04:00
parent 386ab893f6
commit 1a55df5594
No known key found for this signature in database
GPG key ID: 6A08045F084AAC9C

View file

@ -208,7 +208,7 @@ class DefaultScopingTest < ActiveRecord::TestCase
assert_match(/mentor_id/, reload_sql)
end
def test_nilable_default_scope_with_all_queries_runs_on_destroy
def test_nilable_default_scope_with_all_queries_runs_on_reload
dev = DeveloperWithDefaultNilableMentorScopeAllQueries.create!(name: "Nikita")
reload_sql = capture_sql { dev.reload }.first