diff options
author | Akshay Vishnoi <akshay.vishnoi@vinsol.com> | 2015-12-18 20:02:45 +0530 |
---|---|---|
committer | Akshay Vishnoi <akshay.vishnoi@vinsol.com> | 2015-12-18 20:02:45 +0530 |
commit | db365076442854b2b12228059267a5ae7b7b527f (patch) | |
tree | 35b5e4201cb856df15fd71b103e2547937422cdc /actioncable | |
parent | 83e3a17d3256b256b6f00353b2fb046b6f0ab157 (diff) | |
download | rails-db365076442854b2b12228059267a5ae7b7b527f.tar.gz rails-db365076442854b2b12228059267a5ae7b7b527f.tar.bz2 rails-db365076442854b2b12228059267a5ae7b7b527f.zip |
[ActionCable] Test available actions on Channel
Diffstat (limited to 'actioncable')
-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 |