Methods
Instance Public methods
channel_class() Link
connection_class() Link
determine_default_channel(name) Link
# File actioncable/lib/action_cable/channel/test_case.rb, line 188 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
tests(channel) Link
tests_connection(connection) Link
# File actioncable/lib/action_cable/channel/test_case.rb, line 169 def tests_connection(connection) case connection when String, Symbol self._connection_class = connection.to_s.camelize.constantize when Module self._connection_class = connection else raise Connection::NonInferrableConnectionError.new(connection) end end