be58d82016
This avoids `perform_enqueued_jobs` to execute jobs from the previous tests.
9 lines
167 B
Ruby
9 lines
167 B
Ruby
RSpec.configure do |config|
|
|
config.include ActiveJob::TestHelper
|
|
|
|
config.before(:each) do
|
|
clear_enqueued_jobs
|
|
end
|
|
end
|
|
|
|
ActiveJob::Base.queue_adapter = :test
|