Module: ActionCable::Channel::ChannelExt
- Defined in:
- lib/action_cable/channel/test_case.rb
Overview
# Action Cable Channel extensions for testing
Add public aliases for subscription_confirmation_sent?
and subscription_rejected?
and stream_names
to access the list of subscribed streams.
Instance Method Summary collapse
Instance Method Details
#confirmed? ⇒ Boolean
25 |
# File 'lib/action_cable/channel/test_case.rb', line 25 def confirmed? = subscription_confirmation_sent? |
#rejected? ⇒ Boolean
27 |
# File 'lib/action_cable/channel/test_case.rb', line 27 def rejected? = subscription_rejected? |
#stream_names ⇒ Object
29 |
# File 'lib/action_cable/channel/test_case.rb', line 29 def stream_names = streams.keys |