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 cable_ready.integration_test_request_encoding initializer #300

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Oct 11, 2024

  1. Add cable_ready.integration_test_request_encoding initializer

    * This has been adapted from https://github.com/hotwired/turbo-rails/blob/9b17a3be3705786d72c3ae77fde5a9b3006555d7/lib/turbo/engine.rb#L119
    * In order to streamline development, Rails integration tests should
    	be able to support `as: :cable_ready` to test Cable Ready responses
    	* This is done by setting up a new request encoding that
    		ActionDispatch's integration tests can use. In this case, the
    		encoder is barebones and is largely focused on streamlining how
    		the request `Accept` headers are setup
    tcannonfodder committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    9a5ba14 View commit details
    Browse the repository at this point in the history