mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
78bbf6dcc4
Call send_on_create_confirmation_instructions in after_commit instead of after_create, I think this is no harm in general and it makes things like async job work. Fix #4062
17 lines
547 B
Ruby
17 lines
547 B
Ruby
ActiveRecord::Migration.verbose = false
|
|
ActiveRecord::Base.logger = Logger.new(nil)
|
|
ActiveRecord::Base.include_root_in_json = true
|
|
|
|
ActiveRecord::Migrator.migrate(File.expand_path("../../rails_app/db/migrate/", __FILE__))
|
|
|
|
class ActiveSupport::TestCase
|
|
if Devise.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
|