diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-10-22 11:39:38 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-10-22 11:39:38 +0000 |
commit | b7d2bd7b04af006ac8d143b06e5a9ac78ccebe09 (patch) | |
tree | 79c6ca20c3198ecf6b56f070f19deda669913cfb /test/helpers | |
parent | cf44fcc9f76d19f0205792d3f6699baf4afc50d3 (diff) | |
download | redmine-b7d2bd7b04af006ac8d143b06e5a9ac78ccebe09.tar.gz redmine-b7d2bd7b04af006ac8d143b06e5a9ac78ccebe09.zip |
code cleanup: rubocop: fix Layout/ClosingHeredocIndentation in ApplicationHelperTest#test_table_of_content_should_generate_unique_anchors
git-svn-id: http://svn.redmine.org/redmine/trunk@18801 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/helpers')
-rw-r--r-- | test/helpers/application_helper_test.rb | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/test/helpers/application_helper_test.rb b/test/helpers/application_helper_test.rb index f3b27245e..6ccb16aad 100644 --- a/test/helpers/application_helper_test.rb +++ b/test/helpers/application_helper_test.rb @@ -1316,17 +1316,15 @@ RAW def test_table_of_content_should_generate_unique_anchors set_language_if_valid 'en' + raw = <<~RAW + {{toc}} - raw = <<-RAW -{{toc}} - -h1. Title - -h2. Subtitle + h1. Title -h2. Subtitle -RAW + h2. Subtitle + h2. Subtitle + RAW expected = '<ul class="toc">' + '<li><strong>Table of contents</strong></li>' + '<li><a href="#Title">Title</a>' + @@ -1336,7 +1334,6 @@ RAW '</ul>' + '</li>' + '</ul>' - @project = Project.find(1) result = textilizable(raw).gsub("\n", "") assert_include expected, result |