From 3f04f7017182a940bff113603eac15778a624520 Mon Sep 17 00:00:00 2001 From: Eric Schultz Date: Fri, 8 Nov 2019 12:02:21 -0600 Subject: [PATCH] Fix spec problem where queued jobs were never cleared --- spec/spec_helper.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 37976a7f..1dcef0d5 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -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