instance method tests

Ruby on Rails 8.1.2

Since v6.0.6

Available in: v6.0.6 v6.1.7.10 v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

tests(connection)

No documentation comment.

Parameters

connection req
Source
# File actioncable/lib/action_cable/connection/test_case.rb, line 156
          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 156 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionCable::Connection::TestCase::Behavior::ClassMethods

Type at least 2 characters to search.

↑↓ navigate · open · esc close