diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2015-12-18 12:42:15 -0200 |
---|---|---|
committer | Rafael França <rafaelmfranca@gmail.com> | 2015-12-18 12:42:15 -0200 |
commit | 6b88b98327163230e75950a7198d2d61c6f3cd26 (patch) | |
tree | cb59afcd486af2590e940471c89e37bf9190fa66 | |
parent | 840b3dd9b22d134ada2a9ed562e253dead1d0cb3 (diff) | |
parent | db365076442854b2b12228059267a5ae7b7b527f (diff) | |
download | rails-6b88b98327163230e75950a7198d2d61c6f3cd26.tar.gz rails-6b88b98327163230e75950a7198d2d61c6f3cd26.tar.bz2 rails-6b88b98327163230e75950a7198d2d61c6f3cd26.zip |
Merge pull request #22665 from akshay-vishnoi/base_test_case
[ActionCable] Test available actions on Channel
-rw-r--r-- | actioncable/test/channel/base_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/actioncable/test/channel/base_test.rb b/actioncable/test/channel/base_test.rb index 580338b44a..506d41d9a2 100644 --- a/actioncable/test/channel/base_test.rb +++ b/actioncable/test/channel/base_test.rb @@ -145,4 +145,8 @@ class ActionCable::Channel::BaseTest < ActiveSupport::TestCase assert_equal expected, @connection.last_transmission end + test "actions available on Channel" do + available_actions = ["room", "last_action", "subscribed", "unsubscribed", "toggle_subscribed", "leave", "speak", "subscribed?", "get_latest", "chatters", "topic"].to_set + assert_equal available_actions, ChatChannel.action_methods + end end |