1
@request.headers["Authorization"] = "Token token=#{auth_token}"
post "/verify"
當我puts @request.inspect
唯一的頭我看到的是:Rails的集成測試頭沒有被設置
..."action_controller.instance"=>
#<VerificationsController:0x007fc5683ebd38 @_routes=nil,
@_action_has_layout=true,
@_headers={"Content-Type"=>"text/html"}...
爲什麼我的授權頭不顯示?
顯然前者語法不爲IntegrationTests工作... –