From 8d803825765b514d3da03d42e4bf7f8c61ac7a6c Mon Sep 17 00:00:00 2001 From: Konstantin Gredeskoul Date: Thu, 3 Oct 2024 13:12:29 -0700 Subject: [PATCH] Specify :test queue adapter --- config/environments/test.rb | 2 ++ spec/spec_helper.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config/environments/test.rb b/config/environments/test.rb index 583825d0..399933b7 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -83,6 +83,8 @@ # 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 + config.stripe = { secret_api_key: Rails.application.credentials.test.dig(:stripe, :secret_api_key), publishable_api_key: Rails.application.credentials.test.dig(:stripe, :publishable_api_key) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 02e5bbc8..e41aab32 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -28,7 +28,7 @@ config.around do |example| # 10 seconds should be more than enough for ANY spec - Timeout.timeout(ENV.fetch('RSPEC_TIMEOUT', 10).to_i) do + Timeout.timeout(ENV.fetch('RSPEC_TIMEOUT', 30).to_i) do example.run end end