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