instance method assert_has_no_stream_for

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_for(object)

Asserts that the specified stream for a model has not started.

def test_assert_no_started_stream_for
  subscribe id: 41
  assert_has_no_stream_for User.find(42)
end

Parameters

object req
Source
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
        def assert_has_no_stream_for(object)
          assert_has_no_stream(broadcasting_for(object))
        end

Defined in actioncable/lib/action_cable/channel/test_case.rb line 337 · 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