Skip to content

Commit

Permalink
Fix for PredicateBuilderTest
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanharan committed Oct 7, 2024
1 parent 9849923 commit 6460cbe
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 6460cbe

Please sign in to comment.