summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-22 11:39:49 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-22 11:39:49 +0000
commitf1e26cbb548917c355e43a020e9012207fe2672c (patch)
tree55a558519f33ae3847134d2262f90d3c63a175b9 /test
parentb7d2bd7b04af006ac8d143b06e5a9ac78ccebe09 (diff)
downloadredmine-f1e26cbb548917c355e43a020e9012207fe2672c.tar.gz
redmine-f1e26cbb548917c355e43a020e9012207fe2672c.zip
code cleanup: rubocop: fix Layout/ClosingHeredocIndentation in ApplicationHelperTest#test_table_of_content
git-svn-id: http://svn.redmine.org/redmine/trunk@18802 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/helpers/application_helper_test.rb36
1 files changed, 17 insertions, 19 deletions
diff --git a/test/helpers/application_helper_test.rb b/test/helpers/application_helper_test.rb
index 6ccb16aad..316137a78 100644
--- a/test/helpers/application_helper_test.rb
+++ b/test/helpers/application_helper_test.rb
@@ -1252,38 +1252,36 @@ EXPECTED
def test_table_of_content
set_language_if_valid 'en'
+ raw = <<~RAW
+ {{toc}}
- raw = <<-RAW
-{{toc}}
-
-h1. Title
+ h1. Title
-Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas sed libero.
+ Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas sed libero.
-h2. Subtitle with a [[Wiki]] link
+ h2. Subtitle with a [[Wiki]] link
-Nullam commodo metus accumsan nulla. Curabitur lobortis dui id dolor.
+ Nullam commodo metus accumsan nulla. Curabitur lobortis dui id dolor.
-h2. Subtitle with [[Wiki|another Wiki]] link
+ h2. Subtitle with [[Wiki|another Wiki]] link
-h2. Subtitle with %{color:red}red text%
+ h2. Subtitle with %{color:red}red text%
-<pre>
-some code
-</pre>
-
-h3. Subtitle with *some* _modifiers_
+ <pre>
+ some code
+ </pre>
-h3. Subtitle with @inline code@
+ h3. Subtitle with *some* _modifiers_
-h1. Another title
+ h3. Subtitle with @inline code@
-h3. An "Internet link":http://www.redmine.org/ inside subtitle
+ h1. Another title
-h2. "Project Name !/attachments/1234/logo_small.gif! !/attachments/5678/logo_2.png!":/projects/projectname/issues
+ h3. An "Internet link":http://www.redmine.org/ inside subtitle
-RAW
+ h2. "Project Name !/attachments/1234/logo_small.gif! !/attachments/5678/logo_2.png!":/projects/projectname/issues
+ RAW
expected = '<ul class="toc">' +
'<li><strong>Table of contents</strong></li>' +
'<li><a href="#Title">Title</a>' +