instance method
tests
Ruby on Rails 6.0.6
Since v6.0.6Signature
tests(connection)
No documentation comment.
Parameters
-
connectionreq
Source
# File actioncable/lib/action_cable/connection/test_case.rb, line 147
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 147
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionCable::Connection::TestCase::Behavior::ClassMethods