我目前正在使用 cucumber 和 rspec 为应用程序编写测试。我被要求测试心跳控制器,但我不确定如何处理它。
module Api
class HeartbeatController < ActionController::Base
respond_to :json, :xml
include Something::Status
def status
respond_with status_response
end
end
end