Clear Sidekiq jobs between tests (#5324)
This commit is contained in:
parent
545ffc9b13
commit
ee8fd7cbc2
1 changed files with 2 additions and 0 deletions
|
|
@ -78,6 +78,8 @@ RSpec.configure do |config|
|
|||
|
||||
config.before do
|
||||
ActiveRecord::Base.observers.disable :all # <-- Turn 'em all off!
|
||||
|
||||
Sidekiq::Worker.clear_all # worker jobs shouldn't linger around between tests
|
||||
end
|
||||
|
||||
config.after do
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue