method

connect

rails latest stable - Class: ActionCable::Connection::TestCase::Behavior
connect(path = ActionCable.server.config.mount_path, **request_params)
public

Performs connection attempt to exert #connect on the connection under test.

Accepts request path as the first argument and the following request options:

  • params – URL parameters (Hash)

  • headers – request headers (Hash)

  • session – session data (Hash)

  • env – additional Rack env configuration (Hash)