Skip to content

Commit

Permalink
Moved coercion to correct class
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanharan committed Dec 11, 2024
1 parent 9f8e994 commit 6ddb035
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/cases/coerced_tests.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1489,9 +1489,6 @@ 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
Expand All @@ -1506,6 +1503,9 @@ def test_does_not_duplicate_optimizer_hints_on_merge_coerced
query = Post.optimizer_hints("OMGHINT").merge(Post.optimizer_hints("OMGHINT")).to_sql
assert_equal expected, query
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
end

Expand Down

0 comments on commit 6ddb035

Please sign in to comment.