class Spec::Rails::Example::ControllerExampleGroup

def bypass_rescue

Note that this will override the effect of rescue_action_in_public

specified separately.
actions that might be caught by a rescue_from clause that is
in cases in which you want to specify errors coming out of
Bypasses any error rescues defined with rescue_from. Useful
def bypass_rescue
  if ::Rails::VERSION::STRING >= '2.2'
    def controller.rescue_action(exception)
      raise exception
    end
  else
    def controller.rescue_action_with_handler(exception)
      raise exception
    end
  end
end