Fix spec problem where queued jobs were never cleared
This commit is contained in:
parent
6e04c84aa1
commit
3f04f70171
1 changed files with 3 additions and 0 deletions
|
@ -17,6 +17,8 @@
|
|||
require 'support/expect'
|
||||
require 'support/mock_helpers'
|
||||
require 'action_mailer_matchers'
|
||||
require 'active_job'
|
||||
include ActiveJob::TestHelper
|
||||
RSpec.configure do |config|
|
||||
# rspec-expectations config goes here. You can use an alternate
|
||||
# assertion/expectation library such as wrong or the stdlib/minitest
|
||||
|
@ -108,5 +110,6 @@ RSpec.configure do |config|
|
|||
DatabaseCleaner.cleaning do
|
||||
example.run
|
||||
end
|
||||
clear_enqueued_jobs
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue