Skip to content

Commit ee8eba9

Browse files
authored
Fix for PredicateBuilderTest (#1239)
1 parent 6844c31 commit ee8eba9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/cases/coerced_tests.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1340,6 +1340,12 @@ def test_registering_new_handlers_coerced
13401340
def test_registering_new_handlers_for_association_coerced
13411341
assert_match %r{#{Regexp.escape(topic_title)} ~ N'rails'}i, Reply.joins(:topic).where(topics: { title: /rails/ }).to_sql
13421342
end
1343+
1344+
private
1345+
1346+
def topic_title
1347+
Topic.lease_connection.quote_table_name("topics.title")
1348+
end
13431349
end
13441350
end
13451351

0 commit comments

Comments
 (0)