diff --git a/test/cases/coerced_tests.rb b/test/cases/coerced_tests.rb index 9b850d295..98a39f41c 100644 --- a/test/cases/coerced_tests.rb +++ b/test/cases/coerced_tests.rb @@ -229,18 +229,6 @@ def test_update_date_time_attributes_with_default_timezone_local end end end - - # SQL Server does not have query for release_savepoint - coerce_tests! %r{an empty transaction does not raise if preventing writes} - test "an empty transaction does not raise if preventing writes coerced" do - ActiveRecord::Base.while_preventing_writes do - assert_queries_count(1, include_schema: true) do - Bird.transaction do - ActiveRecord::Base.lease_connection.materialize_transactions - end - end - end - end end class BelongsToAssociationsTest < ActiveRecord::TestCase @@ -2368,20 +2356,6 @@ def test_preloads_belongs_to_a_composite_primary_key_model_through_id_attribute_ end end -class BasePreventWritesTest < ActiveRecord::TestCase - # SQL Server does not have query for release_savepoint - coerce_tests! %r{an empty transaction does not raise if preventing writes} - test "an empty transaction does not raise if preventing writes coerced" do - ActiveRecord::Base.while_preventing_writes do - assert_queries_count(1, include_schema: true) do - Bird.transaction do - ActiveRecord::Base.lease_connection.materialize_transactions - end - end - end - end -end - class MigratorTest < ActiveRecord::TestCase # Test fails on Windows AppVeyor CI for unknown reason. coerce_tests! :test_migrator_db_has_no_schema_migrations_table if RbConfig::CONFIG["host_os"] =~ /mswin|mingw/