Method: ActionCable::Channel::TestCase::Behavior#assert_has_no_stream_for
- Defined in:
- actioncable/lib/action_cable/channel/test_case.rb
#assert_has_no_stream_for(object) ⇒ 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
337 338 339 |
# 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 |