module RSpec::Rails::ChannelExampleGroup

def have_streams

expect(subscription).to have_streams
@example

Checks that the subscription is subscribed to at least one stream.
def have_streams
  check_subscribed!
  RSpec::Rails::Matchers::ActionCable::HaveStream.new
end