我们不想对连接单元测试使用整个“加密堆栈”,但我们希望确保用户对正确类型的 cookie(即签名、加密或普通)进行测试
方法
实例公共方法
encrypted() 链接
源代码:显示 | 在 GitHub 上
# File actioncable/lib/action_cable/connection/test_case.rb, line 38 def encrypted self[:encrypted] ||= {}.with_indifferent_access end
signed() 链接
源代码:显示 | 在 GitHub 上
# File actioncable/lib/action_cable/connection/test_case.rb, line 34 def signed self[:signed] ||= {}.with_indifferent_access end