Action Cable Channel 存根¶ ↑
存根 stream_from 以跟踪频道的流。为 subscription_confirmation_sent? 和 subscription_rejected? 添加公共别名。
方法
- C
- R
- S
实例公共方法
confirmed?() 链接
来源: 显示 | 在 GitHub 上
# File actioncable/lib/action_cable/channel/test_case.rb, line 25 def confirmed? subscription_confirmation_sent? end
rejected?() 链接
来源: 显示 | 在 GitHub 上
# File actioncable/lib/action_cable/channel/test_case.rb, line 29 def rejected? subscription_rejected? end
start_periodic_timers() 链接
使周期性计时器成为空操作
也别名为: stop_periodic_timers
来源: 显示 | 在 GitHub 上
# File actioncable/lib/action_cable/channel/test_case.rb, line 46 def start_periodic_timers; end
stop_all_streams() 链接
来源: 显示 | 在 GitHub 上
# File actioncable/lib/action_cable/channel/test_case.rb, line 37 def stop_all_streams @_streams = [] end
stream_from(broadcasting, *) 链接
来源: 显示 | 在 GitHub 上
# File actioncable/lib/action_cable/channel/test_case.rb, line 33 def stream_from(broadcasting, *) streams << broadcasting end
streams() 链接
来源: 显示 | 在 GitHub 上
# File actioncable/lib/action_cable/channel/test_case.rb, line 41 def streams @_streams ||= [] end