Remove unnecessary test setup.
This commit is contained in:
parent
f9edc079e0
commit
6a4606d3a6
@ -3,12 +3,7 @@
|
||||
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 @@ def call(env)
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user