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