mirror of
https://github.com/heartcombo/devise.git
synced 2026-01-10 07:18:14 -05:00
18 lines
541 B
Ruby
18 lines
541 B
Ruby
# frozen_string_literal: true
|
|
|
|
ActiveRecord::Migration.verbose = false
|
|
ActiveRecord::Base.logger = Logger.new(nil)
|
|
ActiveRecord::Base.include_root_in_json = true
|
|
|
|
migrate_path = File.expand_path("../../rails_app/db/migrate/", __FILE__)
|
|
if Devise::Test.rails71_and_up?
|
|
ActiveRecord::MigrationContext.new(migrate_path).migrate
|
|
else
|
|
ActiveRecord::MigrationContext.new(migrate_path, ActiveRecord::SchemaMigration).migrate
|
|
end
|
|
|
|
class ActiveSupport::TestCase
|
|
self.use_transactional_tests = true
|
|
self.use_instantiated_fixtures = false
|
|
end
|