From 28d1c11af4b8dcd1759ae6947c738afb503d21ad Mon Sep 17 00:00:00 2001 From: Eric Schultz Date: Fri, 8 Nov 2019 11:25:53 -0600 Subject: [PATCH] Add test queue adapter --- spec/rails_helper.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index 1b4a0d57..79e26590 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -43,7 +43,8 @@ end RSpec.configure do |config| # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures config.fixture_path = "#{::Rails.root}/spec/fixtures" - + + ActiveJob::Base.queue_adapter = :test # If you're not using ActiveRecord, or you'd prefer not to run each of your # examples within a transaction, remove the following line or assign false # instead of true.