@@ -2390,30 +2390,6 @@ def test_insert_all_returns_requested_sql_fields_coerced
2390
2390
result = Book . insert_all! [ { name : "Rework" , author_id : 1 } ] , returning : Arel . sql ( "UPPER(INSERTED.name) as name" )
2391
2391
assert_equal %w[ REWORK ] , result . pluck ( "name" )
2392
2392
end
2393
-
2394
- # SQL Server does not support upsert. Coerce can be removed after https://github.com/rails/rails/pull/49344
2395
- coerce_tests! :test_insert_all_should_handle_empty_arrays
2396
- def test_insert_all_should_handle_empty_arrays_coerced
2397
- assert_raises ( ArgumentError , /does not support upsert/ ) do
2398
- original_test_insert_all_should_handle_empty_arrays
2399
- end
2400
- end
2401
-
2402
- # SQL Server does not support upsert. Coerce can be removed after https://github.com/rails/rails/pull/49344
2403
- coerce_tests! :test_insert_all_and_upsert_all_with_aliased_attributes
2404
- def test_insert_all_and_upsert_all_with_aliased_attributes_coerced
2405
- assert_raises ( ArgumentError , /does not support upsert/ ) do
2406
- original_test_insert_all_and_upsert_all_with_aliased_attributes
2407
- end
2408
- end
2409
-
2410
- # SQL Server does not support upsert. Coerce can be removed after https://github.com/rails/rails/pull/49344
2411
- coerce_tests! :test_insert_all_and_upsert_all_with_sti
2412
- def test_insert_all_and_upsert_all_with_sti_coerced
2413
- assert_raises ( ArgumentError , /does not support upsert/ ) do
2414
- original_test_insert_all_and_upsert_all_with_sti
2415
- end
2416
- end
2417
2393
end
2418
2394
2419
2395
class HasOneThroughDisableJoinsAssociationsTest < ActiveRecord ::TestCase
@@ -2445,9 +2421,6 @@ class ActiveRecord::Encryption::EncryptableRecordTest < ActiveRecord::Encryption
2445
2421
author = EncryptedAuthor . create ( name : "a" * 4001 )
2446
2422
assert_not author . valid?
2447
2423
end
2448
-
2449
- # SQL Server does not support upsert. Coerce can be removed after https://github.com/rails/rails/pull/49344
2450
- coerce_tests! %r{loading records with encrypted attributes defined on columns with default values}
2451
2424
end
2452
2425
2453
2426
module ActiveRecord
0 commit comments