forked from hotwired/turbo-rails
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
capture_turbo_stream_broadcast
test helper
Follow-up to [hotwired#466][] Introduce the `#capture_turbo_stream_broadcast` helper to serve as a shortcut invocation for `#capture_turbo_stream_broadcasts`. It returns *a single* value, instead of an Array. The benefit is that assertions that only need to make an assertion about a single element are not required to deconstruct the `Array` value to access the first element. [hotwired#466]: hotwired#466
- Loading branch information
1 parent
4bbe142
commit f21a456
Showing
2 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters