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