class ActionCable::Connection::StringIdentifierTest
Private Instance Methods
open_connection()
click to toggle source
# File actioncable/test/connection/string_identifier_test.rb, line 34 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()
click to toggle source
# File actioncable/test/connection/string_identifier_test.rb, line 27 def open_connection_with_stubbed_pubsub @server = TestServer.new @server.stubs(:pubsub).returns(stub_everything("pubsub")) open_connection end