module ActionController::TestCase::RaiseActionExceptions

def self.included(base)

def self.included(base)
  base.class_eval do
    attr_accessor :exception
    protected :exception, :exception=
  end
end

def rescue_action_without_handler(e)

def rescue_action_without_handler(e)
  self.exception = e
  if request.remote_addr == "0.0.0.0"
    raise(e)
  else
    super(e)
  end
end