-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve implicit description for RSpec::Rails::Matchers::ActionCable:…
…:HaveBroadcastedTo Previously, tests defined like this: ```rb it do expect { some_action }.to have_broadcasted_to("stream_name").from_channel(SomeChannel).with("some_data") end ``` would implicitly be given the description `have broadcasted to`, which is derived from the name of the matcher method. This didn't carry any extra information about the data we're expecting to be broadcast from the channel - behaviour which would be very welcome in combination with Turbo Streams. With a matcher for Turbo Streams, we might benefit from a description like "broadcast exactly 1 messages to stream with turbo-stream[action="append"][target="some_list"]".
- Loading branch information
Showing
3 changed files
with
59 additions
and
3 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
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