rails/actioncable/CHANGELOG.md
Junichi Sato 523f86964f
Rename #assert_not_has_stream #assert_has_no_stream
This is a follow-up to https://github.com/rails/rails/pull/50585.

I propose to provide smoother reading experiences with the two methods
introduced in there, `#assert_not_has_stream` and `#assert_not_has_stream_for`,
by renaming them `#assert_has_no_stream` and `#assert_has_no_stream_for`, respectively.
2024-01-05 11:29:21 +09:00

597 B

  • Add two new assertion methods for ActionCable test cases: assert_has_no_stream and assert_has_no_stream_for. These methods can be used to assert that a stream has been stopped, e.g. via stop_stream or stop_stream_for. They complement the already existing assert_has_stream and assert_has_stream_for methods.

    assert_has_no_stream "messages"
    assert_has_no_stream_for User.find(42)
    

    Sebastian Pöll, Junichi Sato

Please check 7-1-stable for previous changes.