method
stub_connection
rails latest stable - Class:
ActionCable::Channel::TestCase::Behavior
stub_connection(identifiers = {})public
Set up test connection with the specified identifiers:
class ApplicationCable < ActionCable::Connection::Base identified_by :user, :token end stub_connection(user: users[:john], token: 'my-secret-token')