File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
dummy/config/environments Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 23
23
config . cache_store = :null_store
24
24
25
25
# Raise exceptions instead of rendering exception templates.
26
- config . action_dispatch . show_exceptions = false
26
+ config . action_dispatch . show_exceptions = :none
27
27
28
28
# Disable request forgery protection in test environment.
29
29
config . action_controller . allow_forgery_protection = false
Original file line number Diff line number Diff line change 59
59
def enable_show_exceptions
60
60
self . initial_env_config = Rails . application . env_config
61
61
Rails . application . env_config . merge! (
62
- "action_dispatch.show_exceptions" => true ,
62
+ "action_dispatch.show_exceptions" => :all ,
63
63
"action_dispatch.show_detailed_exceptions" => false ,
64
64
"consider_all_requests_local" => false ,
65
65
)
Original file line number Diff line number Diff line change 100
100
exception_counter = Prometheus ::Client . registry . get ( :http_exceptions_total )
101
101
request_duration_seconds = 1.0
102
102
103
- expect ( Proc . new do
103
+ expect do
104
104
Promenade ::Client ::Rack ::ExceptionHandler . call ( exception ,
105
105
env_hash ,
106
106
request_duration_seconds )
107
- end ) . to raise_error ( exception_klass )
107
+ end . to raise_error ( exception_klass )
108
108
end
109
109
end
110
110
You can’t perform that action at this time.
0 commit comments