mirror of https://github.com/rails/rails
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:
parent
3f24fa894a
commit
96a2a70248
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -16,8 +16,6 @@ class PostgresqlLtree < ActiveRecord::Base
|
|||
end
|
||||
|
||||
class PostgresqlDataTypeTest < ActiveRecord::PostgreSQLTestCase
|
||||
self.use_transactional_tests = false
|
||||
|
||||
def setup
|
||||
@connection = ActiveRecord::Base.connection
|
||||
|
||||
|
|
|
@ -49,8 +49,6 @@ class PostgresqlInvertibleMigrationTest < ActiveRecord::PostgreSQLTestCase
|
|||
end
|
||||
end
|
||||
|
||||
self.use_transactional_tests = false
|
||||
|
||||
setup do
|
||||
@connection = ActiveRecord::Base.connection
|
||||
end
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -9,7 +9,6 @@ class PostgresqlRange < ActiveRecord::Base
|
|||
end
|
||||
|
||||
class PostgresqlRangeTest < ActiveRecord::PostgreSQLTestCase
|
||||
self.use_transactional_tests = false
|
||||
include ConnectionHelper
|
||||
include InTimeZone
|
||||
|
||||
|
|
|
@ -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|
|
||||
|
|
|
@ -713,7 +713,6 @@ end
|
|||
|
||||
class SchemaWithDotsTest < ActiveRecord::PostgreSQLTestCase
|
||||
include PGSchemaHelper
|
||||
self.use_transactional_tests = false
|
||||
|
||||
setup do
|
||||
@connection = ActiveRecord::Base.connection
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -131,8 +131,6 @@ class AsynchronousQueriesTest < ActiveRecord::TestCase
|
|||
end
|
||||
|
||||
class AsynchronousQueriesWithTransactionalTest < ActiveRecord::TestCase
|
||||
self.use_transactional_tests = true
|
||||
|
||||
include AsynchronousQueriesSharedTests
|
||||
|
||||
def setup
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -3,8 +3,6 @@
|
|||
require "cases/helper"
|
||||
|
||||
class PrimaryClassTest < ActiveRecord::TestCase
|
||||
self.use_transactional_tests = false
|
||||
|
||||
def teardown
|
||||
clean_up_connection_handler
|
||||
end
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue