class RSpec::Rails::Matchers::ActionCable::HaveBroadcastedTo

def set_expected_number(relativity, count)

def set_expected_number(relativity, count)
  @expectation_type = relativity
  @expected_number =
    case count
    when :once then 1
    when :twice then 2
    when :thrice then 3
    else Integer(count)
    end
end