跳至內容 跳至搜尋

我們不希望對連線單元測試使用完整的「加密堆疊」,但我們希望確保使用者根據正確的 cookie 類型進行測試 (例如,已簽章、已加密或純文字)

方法
E
S

執行個體公開的方法

已加密()

# File actioncable/lib/action_cable/connection/test_case.rb, line 48
def encrypted
  @encrypted ||= TestCookies.new
end

已簽章()

# File actioncable/lib/action_cable/connection/test_case.rb, line 44
def signed
  @signed ||= TestCookies.new
end