instance method
disconnect
Ruby on Rails 8.1.2
Since v6.0.6Signature
disconnect()
Exert #disconnect on the connection under test.
Source
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
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 205
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionCable::Connection::TestCase::Behavior