From 995d9fdfcaea9f61a3695516989d5342118144c8 Mon Sep 17 00:00:00 2001 From: Aidan Haran Date: Thu, 20 Mar 2025 14:18:58 +0000 Subject: [PATCH] Test no longer need to be coerced --- test/cases/coerced_tests.rb | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/test/cases/coerced_tests.rb b/test/cases/coerced_tests.rb index 1cdd9eff8..520980672 100644 --- a/test/cases/coerced_tests.rb +++ b/test/cases/coerced_tests.rb @@ -2587,22 +2587,6 @@ def invalid_add_column_option_exception_message(key) end end -# SQL Server does not support upsert. Removed dependency on `insert_all` that uses upsert. -class ActiveRecord::Encryption::ConcurrencyTest < ActiveRecord::EncryptionTestCase - undef_method :thread_encrypting_and_decrypting - def thread_encrypting_and_decrypting(thread_label) - posts = 100.times.collect { |index| EncryptedPost.create! title: "Article #{index} (#{thread_label})", body: "Body #{index} (#{thread_label})" } - - Thread.new do - posts.each.with_index do |article, index| - assert_encrypted_attribute article, :title, "Article #{index} (#{thread_label})" - article.decrypt - assert_not_encrypted_attribute article, :title, "Article #{index} (#{thread_label})" - end - end - end -end - # Need to use `install_unregistered_type_fallback` instead of `install_unregistered_type_error` so that message-pack # can read and write `ActiveRecord::ConnectionAdapters::SQLServer::Type::Data` objects. class ActiveRecordMessagePackTest < ActiveRecord::TestCase