instance method assert_no_streams

Ruby on Rails edge

Since edge

Signature

assert_no_streams()

Asserts that no streams have been started.

def test_assert_no_started_stream
  subscribe
  assert_no_streams
end
Source
# File actioncable/lib/action_cable/channel/test_case.rb, line 276
        def assert_no_streams
          check_subscribed!
          assert subscription.stream_names.empty?, "No streams started was expected, but #{subscription.stream_names.count} found"
        end

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