From 9f8e99448d7a949a370e3316c10ebc2e4a2b6708 Mon Sep 17 00:00:00 2001 From: Aidan Haran Date: Tue, 10 Dec 2024 11:59:08 +0000 Subject: [PATCH] Update coerced_tests.rb --- test/cases/coerced_tests.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/cases/coerced_tests.rb b/test/cases/coerced_tests.rb index 1ffa0694c..6e9f59127 100644 --- a/test/cases/coerced_tests.rb +++ b/test/cases/coerced_tests.rb @@ -1489,6 +1489,9 @@ def test_reverse_arel_assoc_order_with_function_coerced topics = Topic.order(Arel.sql("LEN(title)") => :asc).reverse_order assert_equal topics(:second).title, topics.first.title end + + # Order column must be in the GROUP clause. However, with implicit ordering we can't test this when selecting expression column. + coerce_tests! %r{runs queries when using pick with expression column and empty IN} end module ActiveRecord