instance method tests_connection

Ruby on Rails edge

Since edge

Signature

tests_connection(connection)

No documentation comment.

Parameters

connection req
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

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close