Open airblade opened 4 years ago
Probably long since resolved, but if anyone else faces issues I think you need to query the env off of the connection object in action cable:
def cookies
@cookies ||= ActionDispatch::Request.new(connection.env).cookie_jar
end
Hello!
I am trying to write a test for an ActionCable connection. My connection class looks like this:
I am trying to write a test along the lines recommended in the Rails docs:
However the remember token cookie doesn't seem to get set. I also tried
cookies[:remember_token] = "42"
.I'd greatly appreciate any advice for how to get this working. Thanks!