From 15ffdb754363497588a49ce125db569e46992320 Mon Sep 17 00:00:00 2001 From: Justin Coyne Date: Fri, 28 Jun 2024 14:01:55 -0500 Subject: [PATCH] Set the active_job test adapter This avoids running background jobs inline, which cause a bunch of WebMock errors to be logged --- config/environments/test.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/environments/test.rb b/config/environments/test.rb index d349c355..15a2203b 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -51,4 +51,6 @@ # Raise error when a before_action's only/except options reference missing actions config.action_controller.raise_on_missing_callback_actions = true + + config.active_job.queue_adapter = :test end