module ActionCable::Channel::ChannelStub
Action Cable Channel Stub
Stub stream_from
to track streams for the channel. Add public aliases for subscription_confirmation_sent?
and subscription_rejected?
.
Public instance methods
Source code GitHub
# File actioncable/lib/action_cable/channel/test_case.rb, line 25
def confirmed?
subscription_confirmation_sent?
end
Source code GitHub
# File actioncable/lib/action_cable/channel/test_case.rb, line 29
def rejected?
subscription_rejected?
end
Also aliased as:
stop_periodic_timers
.
Make periodic timers no-op
Source code GitHub
# File actioncable/lib/action_cable/channel/test_case.rb, line 46
def start_periodic_timers; end
Source code GitHub
# File actioncable/lib/action_cable/channel/test_case.rb, line 37
def stop_all_streams
@_streams = []
end
Alias for:
start_periodic_timers
.
Source code GitHub
# File actioncable/lib/action_cable/channel/test_case.rb, line 33
def stream_from(broadcasting, *)
streams << broadcasting
end
Source code GitHub
# File actioncable/lib/action_cable/channel/test_case.rb, line 41
def streams
@_streams ||= []
end