specs: clear jobs queue before each test
This avoids `perform_enqueued_jobs` to execute jobs from the previous tests.
This commit is contained in:
parent
75a1046315
commit
be58d82016
1 changed files with 9 additions and 0 deletions
9
spec/support/active_job.rb
Normal file
9
spec/support/active_job.rb
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
RSpec.configure do |config|
|
||||||
|
config.include ActiveJob::TestHelper
|
||||||
|
|
||||||
|
config.before(:each) do
|
||||||
|
clear_enqueued_jobs
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
ActiveJob::Base.queue_adapter = :test
|
Loading…
Add table
Reference in a new issue