instance method assert_has_no_stream

Ruby on Rails 8.1.2

Since v7.2.3

Available in: v7.2.3 v8.0.4 v8.1.2

Signature

assert_has_no_stream(stream)

Asserts that the specified stream has not been started.

def test_assert_no_started_stream
  subscribe
  assert_has_no_stream 'messages'
end

Parameters

stream req
Source
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
        def assert_has_no_stream(stream)
          assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
        end

Defined in actioncable/lib/action_cable/channel/test_case.rb line 326 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionCable::Channel::TestCase::Behavior

Type at least 2 characters to search.

↑↓ navigate · open · esc close