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