Action Cable 通道存根
存根 stream_from
以跟踪通道的流。为 subscription_confirmation_sent?
和 subscription_rejected?
添加公共别名。
方法
- C
- R
- S
实例公共方法
confirmed?() 链接
来源:显示 | 在 GitHub 上
# File actioncable/lib/action_cable/channel/test_case.rb, line 24 def confirmed? subscription_confirmation_sent? end
rejected?() 链接
来源:显示 | 在 GitHub 上
# File actioncable/lib/action_cable/channel/test_case.rb, line 28 def rejected? subscription_rejected? end
start_periodic_timers() 链接
使定期计时器无操作
还别名为:stop_periodic_timers
来源:显示 | 在 GitHub 上
# File actioncable/lib/action_cable/channel/test_case.rb, line 45 def start_periodic_timers; end
stop_all_streams() 链接
来源:显示 | 在 GitHub 上
# File actioncable/lib/action_cable/channel/test_case.rb, line 36 def stop_all_streams @_streams = [] end
stream_from(broadcasting, *) 链接
来源:显示 | 在 GitHub 上
# File actioncable/lib/action_cable/channel/test_case.rb, line 32 def stream_from(broadcasting, *) streams << broadcasting end
streams() 链接
来源:显示 | 在 GitHub 上
# File actioncable/lib/action_cable/channel/test_case.rb, line 40 def streams @_streams ||= [] end