mirror of
https://github.com/meineerde/redmine.git
synced 2026-03-27 19:21:11 +00:00
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
This commit is contained in:
parent
cf44fcc9f7
commit
b7d2bd7b04
@ -1316,17 +1316,15 @@ RAW
|
|||||||
|
|
||||||
def test_table_of_content_should_generate_unique_anchors
|
def test_table_of_content_should_generate_unique_anchors
|
||||||
set_language_if_valid 'en'
|
set_language_if_valid 'en'
|
||||||
|
raw = <<~RAW
|
||||||
|
{{toc}}
|
||||||
|
|
||||||
raw = <<-RAW
|
h1. Title
|
||||||
{{toc}}
|
|
||||||
|
|
||||||
h1. Title
|
h2. Subtitle
|
||||||
|
|
||||||
h2. Subtitle
|
|
||||||
|
|
||||||
h2. Subtitle
|
|
||||||
RAW
|
|
||||||
|
|
||||||
|
h2. Subtitle
|
||||||
|
RAW
|
||||||
expected = '<ul class="toc">' +
|
expected = '<ul class="toc">' +
|
||||||
'<li><strong>Table of contents</strong></li>' +
|
'<li><strong>Table of contents</strong></li>' +
|
||||||
'<li><a href="#Title">Title</a>' +
|
'<li><a href="#Title">Title</a>' +
|
||||||
@ -1336,7 +1334,6 @@ RAW
|
|||||||
'</ul>' +
|
'</ul>' +
|
||||||
'</li>' +
|
'</li>' +
|
||||||
'</ul>'
|
'</ul>'
|
||||||
|
|
||||||
@project = Project.find(1)
|
@project = Project.find(1)
|
||||||
result = textilizable(raw).gsub("\n", "")
|
result = textilizable(raw).gsub("\n", "")
|
||||||
assert_include expected, result
|
assert_include expected, result
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user