instance method tests

Ruby on Rails 7.2.3

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(channel)

No documentation comment.

Parameters

channel req
Source
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
          def tests(channel)
            case channel
            when String, Symbol
              self._channel_class = channel.to_s.camelize.constantize
            when Module
              self._channel_class = channel
            else
              raise NonInferrableChannelError.new(channel)
            end
          end

Defined in actioncable/lib/action_cable/channel/test_case.rb line 208 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionCable::Channel::TestCase::Behavior::ClassMethods

Type at least 2 characters to search.

↑↓ navigate · open · esc close