Method: ActionCable::Channel::TestCase::Behavior::ClassMethods#tests

Defined in:
actioncable/lib/action_cable/channel/test_case.rb

#tests(channel) ⇒ Object



208
209
210
211
212
213
214
215
216
217
# 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