Skip to content

Commit 4191d87

Browse files
committed
Remove coerced tests
1 parent dd42907 commit 4191d87

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

test/cases/coerced_tests.rb

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1339,34 +1339,6 @@ def test_update_all_with_group_by_coerced
13391339
post = Post.select(:id, :title).group(:title).joins(:comments).group("posts.id").having("count(comments.id) < #{minimum_comments_count}").first
13401340
assert_not_equal "ig", post.title
13411341
end
1342-
1343-
# TODO: https://github.com/rails/rails/pull/54482
1344-
coerce_tests! :test_dynamic_update_all_with_one_joined_table
1345-
def test_dynamic_update_all_with_one_joined_table_coerced
1346-
update_fragment = "name = pets.name"
1347-
1348-
toys = Toy.joins(:pet)
1349-
assert_equal 3, toys.count
1350-
assert_equal 3, toys.update_all(update_fragment)
1351-
1352-
toys.each do |toy|
1353-
assert_equal toy.pet.name, toy.name
1354-
end
1355-
end
1356-
1357-
# TODO: https://github.com/rails/rails/pull/54482
1358-
coerce_tests! :test_dynamic_update_all_with_two_joined_table
1359-
def test_dynamic_update_all_with_two_joined_table_coerced
1360-
update_fragment = "name = owners.name"
1361-
1362-
toys = Toy.joins(pet: [:owner])
1363-
assert_equal 3, toys.count
1364-
assert_equal 3, toys.update_all(update_fragment)
1365-
1366-
toys.each do |toy|
1367-
assert_equal toy.pet.owner.name, toy.name
1368-
end
1369-
end
13701342
end
13711343

13721344
class DeleteAllTest < ActiveRecord::TestCase

0 commit comments

Comments
 (0)