523f86964f
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.
14 lines
597 B
Markdown
14 lines
597 B
Markdown
* 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.
|
|
|
|
```ruby
|
|
assert_has_no_stream "messages"
|
|
assert_has_no_stream_for User.find(42)
|
|
```
|
|
|
|
*Sebastian Pöll*, *Junichi Sato*
|
|
|
|
Please check [7-1-stable](https://github.com/rails/rails/blob/7-1-stable/actioncable/CHANGELOG.md) for previous changes.
|