instance method
assert_has_stream
Ruby on Rails 6.0.6
Since v6.0.6Signature
assert_has_stream(stream)
Asserts that the specified stream has been started.
def test_assert_started_stream subscribe assert_has_stream 'messages' end
Parameters
-
streamreq
Source
# File actioncable/lib/action_cable/channel/test_case.rb, line 280
def assert_has_stream(stream)
assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
end
Defined in actioncable/lib/action_cable/channel/test_case.rb line 280
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionCable::Channel::TestCase::Behavior