diff options
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/test/dispatch/show_exceptions_test.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/actionpack/test/dispatch/show_exceptions_test.rb b/actionpack/test/dispatch/show_exceptions_test.rb index a34f6f1888..020cc80f3f 100644 --- a/actionpack/test/dispatch/show_exceptions_test.rb +++ b/actionpack/test/dispatch/show_exceptions_test.rb @@ -3,12 +3,7 @@ require 'abstract_unit' class ShowExceptionsTest < ActionDispatch::IntegrationTest class Boomer - def initialize(detailed = false) - @detailed = detailed - end - def call(env) - env['action_dispatch.show_detailed_exceptions'] = @detailed req = ActionDispatch::Request.new(env) case req.path when "/not_found" @@ -23,7 +18,7 @@ class ShowExceptionsTest < ActionDispatch::IntegrationTest end end - ProductionApp = ActionDispatch::ShowExceptions.new((Boomer.new(false))) + ProductionApp = ActionDispatch::ShowExceptions.new(Boomer.new) test 'skip diagnosis if not showing exceptions' do @app = ProductionApp |