Remove unnecessary setters of `use_transactional_tests`

I've removed `self.use_transactional_tests = false` from the tests here
as they don't appear to be necessary. They were likely added when other
tests were copied or just an assumption they were needed.
This commit is contained in:
eileencodes 2023-06-16 13:31:22 -04:00
parent 3f24fa894a
commit 96a2a70248
No known key found for this signature in database
GPG Key ID: BA5C575120BBE8DF
19 changed files with 0 additions and 34 deletions

View File

@ -26,8 +26,6 @@ require "models/sharded/blog_post_tag"
require "models/sharded/blog"
class DestroyAssociationAsyncTest < ActiveRecord::TestCase
self.use_transactional_tests = false
include ActiveJob::TestHelper
test "destroying a record destroys the has_many :through records using a job" do

View File

@ -5,7 +5,6 @@ require "support/schema_dumping_helper"
class CharsetCollationTest < ActiveRecord::AbstractMysqlTestCase
include SchemaDumpingHelper
self.use_transactional_tests = false
setup do
@connection = ActiveRecord::Base.connection

View File

@ -3,8 +3,6 @@
require "cases/helper"
class SchemaMigrationsTest < ActiveRecord::AbstractMysqlTestCase
self.use_transactional_tests = false
def setup
@schema_migration = ActiveRecord::Base.connection.schema_migration
end

View File

@ -5,7 +5,6 @@ require "support/schema_dumping_helper"
class TableOptionsTest < ActiveRecord::AbstractMysqlTestCase
include SchemaDumpingHelper
self.use_transactional_tests = false
def setup
@connection = ActiveRecord::Base.connection

View File

@ -16,8 +16,6 @@ class PostgresqlLtree < ActiveRecord::Base
end
class PostgresqlDataTypeTest < ActiveRecord::PostgreSQLTestCase
self.use_transactional_tests = false
def setup
@connection = ActiveRecord::Base.connection

View File

@ -49,8 +49,6 @@ class PostgresqlInvertibleMigrationTest < ActiveRecord::PostgreSQLTestCase
end
end
self.use_transactional_tests = false
setup do
@connection = ActiveRecord::Base.connection
end

View File

@ -7,7 +7,6 @@ require "support/connection_helper"
module ActiveRecord
module ConnectionAdapters
class PostgreSQLAdapterPreventWritesTest < ActiveRecord::PostgreSQLTestCase
self.use_transactional_tests = false
include DdlHelper
include ConnectionHelper

View File

@ -9,7 +9,6 @@ class PostgresqlRange < ActiveRecord::Base
end
class PostgresqlRangeTest < ActiveRecord::PostgreSQLTestCase
self.use_transactional_tests = false
include ConnectionHelper
include InTimeZone

View File

@ -4,8 +4,6 @@ require "cases/helper"
require "support/connection_helper"
class PostgreSQLReferentialIntegrityTest < ActiveRecord::PostgreSQLTestCase
self.use_transactional_tests = false
include ConnectionHelper
IS_REFERENTIAL_INTEGRITY_SQL = lambda do |sql|

View File

@ -713,7 +713,6 @@ end
class SchemaWithDotsTest < ActiveRecord::PostgreSQLTestCase
include PGSchemaHelper
self.use_transactional_tests = false
setup do
@connection = ActiveRecord::Base.connection

View File

@ -7,8 +7,6 @@ if ActiveRecord::Base.connection.supports_virtual_columns?
class PostgresqlVirtualColumnTest < ActiveRecord::PostgreSQLTestCase
include SchemaDumpingHelper
self.use_transactional_tests = false
class VirtualColumn < ActiveRecord::Base
end

View File

@ -131,8 +131,6 @@ class AsynchronousQueriesTest < ActiveRecord::TestCase
end
class AsynchronousQueriesWithTransactionalTest < ActiveRecord::TestCase
self.use_transactional_tests = true
include AsynchronousQueriesSharedTests
def setup

View File

@ -6,8 +6,6 @@ class TestRecord < ActiveRecord::Base
end
class TestDisconnectedAdapter < ActiveRecord::TestCase
self.use_transactional_tests = false
def setup
@connection = ActiveRecord::Base.connection
end

View File

@ -4,7 +4,6 @@ require "cases/helper"
class TestAdapterWithInvalidConnection < ActiveRecord::TestCase
if current_adapter?(:Mysql2Adapter, :TrilogyAdapter)
self.use_transactional_tests = false
class Bird < ActiveRecord::Base
end

View File

@ -7,8 +7,6 @@ module ActiveRecord
class ReferencesStatementsTest < ActiveRecord::TestCase
include ActiveRecord::Migration::TestHelper
self.use_transactional_tests = false
def setup
super
@table_name = :test_models

View File

@ -4,8 +4,6 @@ require "cases/helper"
require "cases/migration/helper"
class MigratorTest < ActiveRecord::TestCase
self.use_transactional_tests = false
# Use this class to sense if migrations have gone
# up or down.
class Sensor < ActiveRecord::Migration::Current

View File

@ -4,8 +4,6 @@ require "cases/helper"
require "cases/migration/helper"
class MultiDbMigratorTest < ActiveRecord::TestCase
self.use_transactional_tests = false
# Use this class to sense if migrations have gone
# up or down.
class Sensor < ActiveRecord::Migration::Current

View File

@ -3,8 +3,6 @@
require "cases/helper"
class PrimaryClassTest < ActiveRecord::TestCase
self.use_transactional_tests = false
def teardown
clean_up_connection_handler
end

View File

@ -310,8 +310,6 @@ end
class PrimaryKeyAnyTypeTest < ActiveRecord::TestCase
include SchemaDumpingHelper
self.use_transactional_tests = false
class Barcode < ActiveRecord::Base
end
@ -491,8 +489,6 @@ end
class PrimaryKeyIntegerNilDefaultTest < ActiveRecord::TestCase
include SchemaDumpingHelper
self.use_transactional_tests = false
def setup
@connection = ActiveRecord::Base.connection
end