From 61cd18c85562f899dbf4aa48502331833f2df7b8 Mon Sep 17 00:00:00 2001 From: Simon Fish Date: Mon, 3 Jan 2022 15:12:34 +0000 Subject: [PATCH] Skip Turbo test on Rails < 6 --- test/view_component/integration_test.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/test/view_component/integration_test.rb b/test/view_component/integration_test.rb index d0187d92b0..228e0fbda3 100644 --- a/test/view_component/integration_test.rb +++ b/test/view_component/integration_test.rb @@ -495,6 +495,7 @@ def test_does_not_render_additional_newline_with_render_in end 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_equal <<~TURBOSTREAM, response.body