instance method disconnect

Ruby on Rails edge

Since edge

Signature

disconnect()

Exert #disconnect on the connection under test.

Source
# File actioncable/lib/action_cable/connection/test_case.rb, line 307
        def disconnect
          raise "Must be connected!" if connection.nil?

          connection.disconnect if connection.respond_to?(:disconnect)
          @connection = nil
        end

Defined in actioncable/lib/action_cable/connection/test_case.rb line 307 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionCable::Connection::TestServer::TestCase::Behavior

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close