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

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

#determine_default_channel(name) ⇒ Object



227
228
229
230
231
232
233
# File 'actioncable/lib/action_cable/channel/test_case.rb', line 227

def determine_default_channel(name)
  channel = determine_constant_from_test_name(name) do |constant|
    Class === constant && constant < ActionCable::Channel::Base
  end
  raise NonInferrableChannelError.new(name) if channel.nil?
  channel
end