Namespace
Methods
C
O
Instance Protected methods
close_connection()
# File actioncable/test/connection/multiple_identifiers_test.rb, line 38
def close_connection
  @connection.send :handle_close
end
open_connection(server:)
# File actioncable/test/connection/multiple_identifiers_test.rb, line 30
def open_connection(server))
  env = Rack::MockRequest.env_for "/test", 'HTTP_HOST' => 'localhost', 'HTTP_CONNECTION' => 'upgrade', 'HTTP_UPGRADE' => 'websocket'
  @connection = Connection.new(server, env)

  @connection.process
  @connection.send :handle_open
end
open_connection_with_stubbed_pubsub()
# File actioncable/test/connection/multiple_identifiers_test.rb, line 23
def open_connection_with_stubbed_pubsub
  server = TestServer.new
  server.stubs(:pubsub).returns(stub_everything('pubsub'))

  open_connection server: server
end