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

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

  open_connection
end