Skip to content

Commit

Permalink
Removed coerced tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanharan committed Oct 2, 2023
1 parent de89f68 commit 37e8d8c
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions test/cases/coerced_tests.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 37e8d8c

Please sign in to comment.