Skip to content
Browse files

Remove unnecessary test setup.

  • Loading branch information...
1 parent f9edc07 commit 6a4606d3a64e60189ea4ba5243830dcd97e6de14 @josevalim josevalim committed Dec 1, 2011
Showing with 1 addition and 6 deletions.
  1. +1 −6 actionpack/test/dispatch/show_exceptions_test.rb
View
7 actionpack/test/dispatch/show_exceptions_test.rb
@@ -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

0 comments on commit 6a4606d

Please sign in to comment.
Something went wrong with that request. Please try again.