Sha256: 0d76cc3dac2635cbcaedaa3686895a66e05df589cdfd8d291f6cc813bfd266ee

Contents?: true

Size: 707 Bytes

Versions: 4

Compression:

Stored size: 707 Bytes

Contents

# 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.rails52?
  ActiveRecord::MigrationContext.new(migrate_path).migrate
else
  ActiveRecord::Migrator.migrate(migrate_path)
end

class ActiveSupport::TestCase
  if Devise::Test.rails5?
    self.use_transactional_tests = true
  else
    # Let `after_commit` work with transactional fixtures, however this is not needed for Rails 5.
    require 'test_after_commit'
    self.use_transactional_fixtures = true
  end

  self.use_instantiated_fixtures  = false
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
devise-4.5.0 test/orm/active_record.rb
devise_date_restrictable-1.0.0 test/orm/active_record.rb
devise-4.4.3 test/orm/active_record.rb
devise-4.4.2 test/orm/active_record.rb