instance method assert_broadcasts

Ruby on Rails edge

Since edge

Signature

assert_broadcasts(stream_or_object, *args)

Enhance TestHelper assertions to handle non-String broadcastings

Parameters

stream_or_object req
args rest
Source
# File actioncable/lib/action_cable/channel/test_case.rb, line 261
        def assert_broadcasts(stream_or_object, *args)
          super(broadcasting_for(stream_or_object), *args)
        end

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