Remove unnecessary test setup.

This commit is contained in:
José Valim 2011-12-01 21:17:11 +01:00
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