Skip to content

Commit 6ddb035

Browse files
committed
Moved coercion to correct class
1 parent 9f8e994 commit 6ddb035

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/cases/coerced_tests.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1489,9 +1489,6 @@ def test_reverse_arel_assoc_order_with_function_coerced
14891489
topics = Topic.order(Arel.sql("LEN(title)") => :asc).reverse_order
14901490
assert_equal topics(:second).title, topics.first.title
14911491
end
1492-
1493-
# Order column must be in the GROUP clause. However, with implicit ordering we can't test this when selecting expression column.
1494-
coerce_tests! %r{runs queries when using pick with expression column and empty IN}
14951492
end
14961493

14971494
module ActiveRecord
@@ -1506,6 +1503,9 @@ def test_does_not_duplicate_optimizer_hints_on_merge_coerced
15061503
query = Post.optimizer_hints("OMGHINT").merge(Post.optimizer_hints("OMGHINT")).to_sql
15071504
assert_equal expected, query
15081505
end
1506+
1507+
# Order column must be in the GROUP clause. However, with implicit ordering we can't test this when selecting expression column.
1508+
coerce_tests! %r{runs queries when using pick with expression column and empty IN}
15091509
end
15101510
end
15111511

0 commit comments

Comments
 (0)