aboutsummaryrefslogtreecommitdiffstats
path: root/actioncable/test/channel/naming_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actioncable/test/channel/naming_test.rb')
-rw-r--r--actioncable/test/channel/naming_test.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/actioncable/test/channel/naming_test.rb b/actioncable/test/channel/naming_test.rb
new file mode 100644
index 0000000000..45652d9cc9
--- /dev/null
+++ b/actioncable/test/channel/naming_test.rb
@@ -0,0 +1,12 @@
+# frozen_string_literal: true
+
+require "test_helper"
+
+class ActionCable::Channel::NamingTest < ActionCable::TestCase
+ class ChatChannel < ActionCable::Channel::Base
+ end
+
+ test "channel_name" do
+ assert_equal "action_cable:channel:naming_test:chat", ChatChannel.channel_name
+ end
+end