Methods
C
E
N
Attributes
[RW] closed
Class Public methods
new(detailed = false)
# File actionpack/test/dispatch/debug_exceptions_test.rb, line 8
def initialize(detailed  = false)
  @detailed = detailed
  @closed = false
end
Instance Public methods
call(env)
# File actionpack/test/dispatch/debug_exceptions_test.rb, line 20
def call(env)
  env['action_dispatch.show_detailed_exceptions'] = @detailed
  req = ActionDispatch::Request.new(env)
  case req.path
  when "/pass"
    [404, { "X-Cascade" => "pass" }, self]
  when "/not_found"
    raise AbstractController::ActionNotFound
  when "/runtime_error"
    raise RuntimeError
  when "/method_not_allowed"
    raise ActionController::MethodNotAllowed
  when "/not_implemented"
    raise ActionController::NotImplemented
  when "/unprocessable_entity"
    raise ActionController::InvalidAuthenticityToken
  when "/not_found_original_exception"
    raise ActionView::Template::Error.new('template', {}, AbstractController::ActionNotFound.new)
  else
    raise "puke!"
  end
end
close()
# File actionpack/test/dispatch/debug_exceptions_test.rb, line 16
def close
  @closed = true
end
each()
# File actionpack/test/dispatch/debug_exceptions_test.rb, line 13
def each
end