Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add capture_turbo_stream_broadcast test helper #690

Closed

Commits on Oct 3, 2024

  1. 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
    seanpdoyle committed Oct 3, 2024
    Configuration menu
    Copy the full SHA
    f21a456 View commit details
    Browse the repository at this point in the history