method
stub_connection
v6.1.7.7 -
Show 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')