instance method assert_has_stream_for

Ruby on Rails 7.2.3

Since v6.0.6

Available in: v6.0.6 v6.1.7.10 v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

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

object req
Source
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
        def assert_has_stream_for(object)
          assert_has_stream(broadcasting_for(object))
        end

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