instance method
determine_default_connection
Ruby on Rails 6.0.6
Since v6.0.6Signature
determine_default_connection(name)
No documentation comment.
Parameters
-
namereq
Source
# File actioncable/lib/action_cable/connection/test_case.rb, line 166
def determine_default_connection(name)
connection = determine_constant_from_test_name(name) do |constant|
Class === constant && constant < ActionCable::Connection::Base
end
raise NonInferrableConnectionError.new(name) if connection.nil?
connection
end
Defined in actioncable/lib/action_cable/connection/test_case.rb line 166
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionCable::Connection::TestCase::Behavior::ClassMethods