Skip to content

Commit

Permalink
Fix for PredicateBuilderTest (#1239)
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanharan authored Oct 7, 2024
1 parent 6844c31 commit ee8eba9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/cases/coerced_tests.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1340,6 +1340,12 @@ def test_registering_new_handlers_coerced
def test_registering_new_handlers_for_association_coerced
assert_match %r{#{Regexp.escape(topic_title)} ~ N'rails'}i, Reply.joins(:topic).where(topics: { title: /rails/ }).to_sql
end

private

def topic_title
Topic.lease_connection.quote_table_name("topics.title")
end
end
end

Expand Down

0 comments on commit ee8eba9

Please sign in to comment.