我們不希望對連線單元測試使用完整的「加密堆疊」,但我們希望確保使用者根據正確的 cookie 類型進行測試 (例如,已簽章、已加密或純文字)
方法
執行個體公開的方法
已加密() 連結
來源: 顯示 | 在 GitHub 上
# File actioncable/lib/action_cable/connection/test_case.rb, line 48 def encrypted @encrypted ||= TestCookies.new end
已簽章() 連結
來源: 顯示 | 在 GitHub 上
# File actioncable/lib/action_cable/connection/test_case.rb, line 44 def signed @signed ||= TestCookies.new end