From: Toshi MARUYAMA Date: Tue, 22 Oct 2019 11:39:26 +0000 (+0000) Subject: code cleanup: rubocop: fix Layout/ClosingHeredocIndentation in ApplicationHelperTest... X-Git-Tag: 4.1.0~303 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cf44fcc9f76d19f0205792d3f6699baf4afc50d3;p=redmine.git code cleanup: rubocop: fix Layout/ClosingHeredocIndentation in ApplicationHelperTest#test_table_of_content_should_contain_included_page_headings git-svn-id: http://svn.redmine.org/redmine/trunk@18800 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/helpers/application_helper_test.rb b/test/helpers/application_helper_test.rb index 7aae460e0..f3b27245e 100644 --- a/test/helpers/application_helper_test.rb +++ b/test/helpers/application_helper_test.rb @@ -1346,21 +1346,18 @@ RAW def test_table_of_content_should_contain_included_page_headings set_language_if_valid 'en' + raw = <<~RAW + {{toc}} - raw = <<-RAW -{{toc}} - -h1. Included - -{{include(Child_1)}} -RAW + h1. Included + {{include(Child_1)}} + RAW expected = '' - @project = Project.find(1) assert textilizable(raw).gsub("\n", "").include?(expected) end