module ActionController::TestCase::RaiseActionExceptions

def self.included(base)

def self.included(base)
  unless base.method_defined?(:exception) && base.method_defined?(:exception=)
    base.class_eval do
      attr_accessor :exception
      protected :exception, :exception=
    end
  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