1 2 3 4 5 6 7 8 9 10
require "test_helper" class ActionCable::Channel::NamingTest < ActiveSupport::TestCase class ChatChannel < ActionCable::Channel::Base end test "channel_name" do assert_equal "action_cable:channel:naming_test:chat", ChatChannel.channel_name end end