Methods
Instance Public methods
channel_class()
Source:
# File actioncable/lib/action_cable/channel/test_case.rb, line 195
def channel_class
if channel = self._channel_class
channel
else
tests determine_default_channel(name)
end
end
determine_default_channel(name)
Source:
# File actioncable/lib/action_cable/channel/test_case.rb, line 203
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