File tree Expand file tree Collapse file tree 1 file changed +0
-28
lines changed Expand file tree Collapse file tree 1 file changed +0
-28
lines changed Original file line number Diff line number Diff line change @@ -1339,34 +1339,6 @@ def test_update_all_with_group_by_coerced
1339
1339
post = Post . select ( :id , :title ) . group ( :title ) . joins ( :comments ) . group ( "posts.id" ) . having ( "count(comments.id) < #{ minimum_comments_count } " ) . first
1340
1340
assert_not_equal "ig" , post . title
1341
1341
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
1370
1342
end
1371
1343
1372
1344
class DeleteAllTest < ActiveRecord ::TestCase
You can’t perform that action at this time.
0 commit comments