From 37e8d8cda5a60b408a59792738e40a2fda7be65d Mon Sep 17 00:00:00 2001 From: Aidan Haran Date: Mon, 2 Oct 2023 13:22:22 +0100 Subject: [PATCH] Removed coerced tests --- test/cases/coerced_tests.rb | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/test/cases/coerced_tests.rb b/test/cases/coerced_tests.rb index 00ae75b35..690edd829 100644 --- a/test/cases/coerced_tests.rb +++ b/test/cases/coerced_tests.rb @@ -2390,30 +2390,6 @@ def test_insert_all_returns_requested_sql_fields_coerced result = Book.insert_all! [{ name: "Rework", author_id: 1 }], returning: Arel.sql("UPPER(INSERTED.name) as name") assert_equal %w[ REWORK ], result.pluck("name") end - - # SQL Server does not support upsert. Coerce can be removed after https://github.com/rails/rails/pull/49344 - coerce_tests! :test_insert_all_should_handle_empty_arrays - def test_insert_all_should_handle_empty_arrays_coerced - assert_raises(ArgumentError, /does not support upsert/) do - original_test_insert_all_should_handle_empty_arrays - end - end - - # SQL Server does not support upsert. Coerce can be removed after https://github.com/rails/rails/pull/49344 - coerce_tests! :test_insert_all_and_upsert_all_with_aliased_attributes - def test_insert_all_and_upsert_all_with_aliased_attributes_coerced - assert_raises(ArgumentError, /does not support upsert/) do - original_test_insert_all_and_upsert_all_with_aliased_attributes - end - end - - # SQL Server does not support upsert. Coerce can be removed after https://github.com/rails/rails/pull/49344 - coerce_tests! :test_insert_all_and_upsert_all_with_sti - def test_insert_all_and_upsert_all_with_sti_coerced - assert_raises(ArgumentError, /does not support upsert/) do - original_test_insert_all_and_upsert_all_with_sti - end - end end class HasOneThroughDisableJoinsAssociationsTest < ActiveRecord::TestCase @@ -2445,9 +2421,6 @@ class ActiveRecord::Encryption::EncryptableRecordTest < ActiveRecord::Encryption author = EncryptedAuthor.create(name: "a" * 4001) assert_not author.valid? end - - # SQL Server does not support upsert. Coerce can be removed after https://github.com/rails/rails/pull/49344 - coerce_tests! %r{loading records with encrypted attributes defined on columns with default values} end module ActiveRecord