method
tests
rails latest stable - Class:
ActionCable::Connection::TestCase::Behavior::ClassMethods
tests(connection)public
No documentation available.
# File actioncable/lib/action_cable/connection/test_case.rb, line 149
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