aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2011-12-01 21:17:11 +0100
committerJosé Valim <jose.valim@gmail.com>2011-12-01 21:17:11 +0100
commit6a4606d3a64e60189ea4ba5243830dcd97e6de14 (patch)
tree5dcda627a2c6244f271557e856402e5b984619f0 /actionpack/test
parentf9edc079e030a5d2b0f21b80d6382caf10751057 (diff)
downloadrails-6a4606d3a64e60189ea4ba5243830dcd97e6de14.tar.gz
rails-6a4606d3a64e60189ea4ba5243830dcd97e6de14.tar.bz2
rails-6a4606d3a64e60189ea4ba5243830dcd97e6de14.zip
Remove unnecessary test setup.
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/dispatch/show_exceptions_test.rb7
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