instance method assert_has_no_stream

Ruby on Rails edge

Since edge

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 312
        def assert_has_no_stream(stream)
          check_subscribed!
          stream = String(stream)
          assert subscription.stream_names.exclude?(stream), "Stream #{stream} has been started"
        end

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

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

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close