I am wondering how to test ActionCable channels.
Let\'s say I have the following chat channel:
class ChatChannel < ApplicationCable::Channel def s
Now Rails 6 includes the action-cable-test gem
So there is no need to add a gem. You can do either
assert_has_stream "chat_1"
or, with rspec:
expect(subscription).to have_stream_from("chat_1")