跳至内容 跳至搜索

我们不想对连接单元测试使用整个“加密堆栈”,但我们希望确保用户对正确类型的 cookie(即签名、加密或普通)进行测试

方法
E
S

实例公共方法

encrypted()

# File actioncable/lib/action_cable/connection/test_case.rb, line 38
def encrypted
  self[:encrypted] ||= {}.with_indifferent_access
end

signed()

# File actioncable/lib/action_cable/connection/test_case.rb, line 34
def signed
  self[:signed] ||= {}.with_indifferent_access
end