From 64357c4875bb0ea6d091a6bf465efc4552fe5682 Mon Sep 17 00:00:00 2001 From: Camille Villa <5402927+camillevilla@users.noreply.github.com> Date: Tue, 26 Dec 2023 15:28:50 -0800 Subject: [PATCH] Only run excpetion settings change once --- spec/requests/errors_controller_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/requests/errors_controller_spec.rb b/spec/requests/errors_controller_spec.rb index 66a0cf2be..41223717b 100644 --- a/spec/requests/errors_controller_spec.rb +++ b/spec/requests/errors_controller_spec.rb @@ -1,7 +1,7 @@ require 'rails_helper' RSpec.describe ErrorsController, type: :request do - before do # temporarily disable Puma server errors in test + before(:all) do # temporarily disable Puma server errors in test Rails.application.config.consider_all_requests_local = false Rails.application.config.action_dispatch.show_exceptions = true Rails.application.config.action_dispatch.show_detailed_exceptions = false