module RSpec::Rails::ChannelExampleGroup

def have_stream_from(stream)

expect(subscription).to have_stream_from("chat_1")
@example

Checks that the channel has been subscribed to the given stream
def have_stream_from(stream)
  check_subscribed!
  RSpec::Rails::Matchers::ActionCable::HaveStream.new(stream)
end