mirror of https://github.com/mastodon/mastodon
Undo db cleaner changes?
This commit is contained in:
parent
8fb5aad046
commit
6f84746265
|
@ -25,6 +25,8 @@ ActiveRecord::Migration.maintain_test_schema!
|
||||||
WebMock.disable_net_connect!(allow: Chewy.settings[:host], allow_localhost: true)
|
WebMock.disable_net_connect!(allow: Chewy.settings[:host], allow_localhost: true)
|
||||||
Sidekiq.logger = nil
|
Sidekiq.logger = nil
|
||||||
|
|
||||||
|
DatabaseCleaner.strategy = [:deletion]
|
||||||
|
|
||||||
Devise::Test::ControllerHelpers.module_eval do
|
Devise::Test::ControllerHelpers.module_eval do
|
||||||
alias_method :original_sign_in, :sign_in
|
alias_method :original_sign_in, :sign_in
|
||||||
|
|
||||||
|
@ -120,10 +122,6 @@ RSpec.configure do |config|
|
||||||
redis.del(redis.keys)
|
redis.del(redis.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
config.before fullstack: true do
|
|
||||||
DatabaseCleaner.strategy = [:deletion]
|
|
||||||
end
|
|
||||||
|
|
||||||
# Assign types based on dir name for non-inferred types
|
# Assign types based on dir name for non-inferred types
|
||||||
config.define_derived_metadata(file_path: %r{/spec/}) do |metadata|
|
config.define_derived_metadata(file_path: %r{/spec/}) do |metadata|
|
||||||
unless metadata.key?(:type)
|
unless metadata.key?(:type)
|
||||||
|
|
Loading…
Reference in New Issue