提交 6a4606d3 编写于 作者: J José Valim

Remove unnecessary test setup.

上级 f9edc079
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册