instance method
assert_has_stream_for
Ruby on Rails 6.1.7.10
Since v6.0.6Signature
assert_has_stream_for(object)
Asserts that the specified stream for a model has started.
def test_assert_started_stream_for subscribe id: 42 assert_has_stream_for User.find(42) end
Parameters
-
objectreq
Source
# File actioncable/lib/action_cable/channel/test_case.rb, line 291
def assert_has_stream_for(object)
assert_has_stream(broadcasting_for(object))
end
Defined in actioncable/lib/action_cable/channel/test_case.rb line 291
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionCable::Channel::TestCase::Behavior