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:
parent
83e3a17d32
commit
db36507644
1 changed files with 4 additions and 0 deletions
|
@ -145,4 +145,8 @@ class ActionCable::Channel::BaseTest < ActiveSupport::TestCase
|
||||||
assert_equal expected, @connection.last_transmission
|
assert_equal expected, @connection.last_transmission
|
||||||
end
|
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
|
end
|
||||||
|
|
Loading…
Reference in a new issue