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

solve: undefined local variable or method 'connection'

This commit is contained in:
Matias Grunberg 2022-01-03 21:47:43 -03:00
parent 8a3eece68a
commit 6e119e95b7

View file

@ -76,6 +76,6 @@ class HasOneThroughDisableJoinsAssociationsTest < ActiveRecord::TestCase
assert_no_match(/INNER JOIN/, nj)
end
assert_match(/#{Regexp.escape(connection.quote_table_name('memberships.type'))}/, no_joins.first)
assert_match(/#{Regexp.escape(Member.connection.quote_table_name('memberships.type'))}/, no_joins.first)
end
end