From 6460cbea9152bfd93995fb8433e92a8e46d1da4b Mon Sep 17 00:00:00 2001 From: Aidan Haran Date: Mon, 7 Oct 2024 13:58:46 +0100 Subject: [PATCH] Fix for PredicateBuilderTest --- test/cases/coerced_tests.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/cases/coerced_tests.rb b/test/cases/coerced_tests.rb index a39927864..9ad625757 100644 --- a/test/cases/coerced_tests.rb +++ b/test/cases/coerced_tests.rb @@ -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