Skip to content

Commit

Permalink
Verify capture compatibility patch fixes this
Browse files Browse the repository at this point in the history
  • Loading branch information
boardfish committed Aug 2, 2024
1 parent 1ecb754 commit 0d5d58f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/sandbox/test/integration_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -577,9 +577,14 @@ def test_render_component_in_turbo_stream
skip unless Rails::VERSION::MAJOR >= 6
without_template_annotations do
get turbo_stream_path, headers: { "HTTP_ACCEPT" => "text/vnd.turbo-stream.html" }
assert_not_equal <<~TURBOSTREAM, response.body
expected_response_body = <<~TURBOSTREAM
<turbo-stream action="update" target="area1"><template><span>Hello, world!</span></template></turbo-stream>
TURBOSTREAM
if ViewComponent::Base.config.capture_compatibility_patch_enabled
assert_equal expected_response_body, response.body
else
assert_not_equal expected_response_body, response.body
end
end
end

Expand Down

0 comments on commit 0d5d58f

Please sign in to comment.