Skip to content

Commit 99ceabb

Browse files
committed
Fix deprication warnings thrown by the testsuite
1 parent 698d144 commit 99ceabb

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

spec/dummy/config/environments/test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
config.cache_store = :null_store
2424

2525
# Raise exceptions instead of rendering exception templates.
26-
config.action_dispatch.show_exceptions = false
26+
config.action_dispatch.show_exceptions = :none
2727

2828
# Disable request forgery protection in test environment.
2929
config.action_controller.allow_forgery_protection = false

spec/integration/show_exceptions_middleware_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
def enable_show_exceptions
6060
self.initial_env_config = Rails.application.env_config
6161
Rails.application.env_config.merge!(
62-
"action_dispatch.show_exceptions" => true,
62+
"action_dispatch.show_exceptions" => :all,
6363
"action_dispatch.show_detailed_exceptions" => false,
6464
"consider_all_requests_local" => false,
6565
)

spec/promenade/client/rack/exception_handler_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,11 @@
100100
exception_counter = Prometheus::Client.registry.get(:http_exceptions_total)
101101
request_duration_seconds = 1.0
102102

103-
expect(Proc.new do
103+
expect do
104104
Promenade::Client::Rack::ExceptionHandler.call(exception,
105105
env_hash,
106106
request_duration_seconds)
107-
end).to raise_error(exception_klass)
107+
end.to raise_error(exception_klass)
108108
end
109109
end
110110

0 commit comments

Comments
 (0)