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

Returns:

  • (Boolean)


25
# File 'lib/action_cable/channel/test_case.rb', line 25

def confirmed? = subscription_confirmation_sent?

#rejected?Boolean

Returns:

  • (Boolean)


27
# File 'lib/action_cable/channel/test_case.rb', line 27

def rejected? = subscription_rejected?

#stream_namesObject



29
# File 'lib/action_cable/channel/test_case.rb', line 29

def stream_names = streams.keys