1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-02-24 04:21:44 +00:00

code cleanup: rubocop: fix Layout/CommentIndentation and Layout/MultilineArrayBraceLayout of STR_WITH_PRE in test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@18699 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2019-10-17 04:15:37 +00:00
parent 1f14386822
commit 89e9b05b3d

View File

@ -460,38 +460,45 @@ EXPECTED
end end
STR_WITH_PRE = [ STR_WITH_PRE = [
# 0 # 0
"h1. Title <<~STR.chomp,
h1. Title
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas sed libero.", Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas sed libero.
# 1 STR
"h2. Heading 2 # 1
<<~STR.chomp,
h2. Heading 2
<pre><code class=\"ruby\"> <pre><code class=\"ruby\">
def foo def foo
end end
</code></pre> </code></pre>
<pre><code><pre><code class=\"ruby\"> <pre><code><pre><code class=\"ruby\">
Place your code here. Place your code here.
</code></pre> </code></pre>
</code></pre> </code></pre>
Morbi facilisis accumsan orci non pharetra. Morbi facilisis accumsan orci non pharetra.
<pre> <pre>
Pre Content: Pre Content:
h2. Inside pre h2. Inside pre
<tag> inside pre block <tag> inside pre block
Morbi facilisis accumsan orci non pharetra. Morbi facilisis accumsan orci non pharetra.
</pre>", </pre>
# 2 STR
"h3. Heading 3 # 2
<<~STR.chomp,
h3. Heading 3
Nulla nunc nisi, egestas in ornare vel, posuere ac libero."] Nulla nunc nisi, egestas in ornare vel, posuere ac libero.
STR
]
def test_get_section_should_ignore_pre_content def test_get_section_should_ignore_pre_content
text = STR_WITH_PRE.join("\n\n") text = STR_WITH_PRE.join("\n\n")