1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

[ActionCable] Test available actions on Channel

This commit is contained in:
Akshay Vishnoi 2015-12-18 20:02:45 +05:30
parent 83e3a17d32
commit db36507644

View file

@ -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