instance method
disconnect
Ruby on Rails edge
Since edgeSignature
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