specs: clear jobs queue before each test

This avoids `perform_enqueued_jobs` to execute jobs from the previous
tests.
This commit is contained in:
Pierre de La Morinerie 2021-03-11 15:01:05 +01:00
parent 75a1046315
commit be58d82016

View 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