instance method
tests
Ruby on Rails edge
Since edgeSignature
tests(connection)
No documentation comment.
Parameters
-
connectionreq
Source
# File actioncable/lib/action_cable/connection/test_case.rb, line 256
def tests(connection)
case connection
when String, Symbol
self._connection_class = connection.to_s.camelize.constantize
when Module
self._connection_class = connection
else
raise NonInferrableConnectionError.new(connection)
end
end
Defined in actioncable/lib/action_cable/connection/test_case.rb line 256
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionCable::Connection::TestServer::TestCase::Behavior::ClassMethods