diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-10-17 04:15:37 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-10-17 04:15:37 +0000 |
commit | 89e9b05b3df02cb5e069ef7e2e72fce3816ebdca (patch) | |
tree | 56f968502b9a781d08db6311b9e5726f4f997935 /test/unit/lib | |
parent | 1f143868225521a3097435cdd8bc9e0d76fc1196 (diff) | |
download | redmine-89e9b05b3df02cb5e069ef7e2e72fce3816ebdca.tar.gz redmine-89e9b05b3df02cb5e069ef7e2e72fce3816ebdca.zip |
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
Diffstat (limited to 'test/unit/lib')
-rw-r--r-- | test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb | 53 |
1 files changed, 30 insertions, 23 deletions
diff --git a/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb b/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb index c7cea731e..65d12ad98 100644 --- a/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb +++ b/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb @@ -460,38 +460,45 @@ EXPECTED end STR_WITH_PRE = [ - # 0 -"h1. Title + # 0 + <<~STR.chomp, + h1. Title -Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas sed libero.", - # 1 -"h2. Heading 2 + Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas sed libero. + STR + # 1 + <<~STR.chomp, + h2. Heading 2 -<pre><code class=\"ruby\"> - def foo - end -</code></pre> + <pre><code class=\"ruby\"> + def foo + end + </code></pre> -<pre><code><pre><code class=\"ruby\"> - Place your code here. -</code></pre> -</code></pre> + <pre><code><pre><code class=\"ruby\"> + Place your code here. + </code></pre> + </code></pre> -Morbi facilisis accumsan orci non pharetra. + Morbi facilisis accumsan orci non pharetra. -<pre> -Pre Content: + <pre> + Pre Content: -h2. Inside pre + h2. Inside pre -<tag> inside pre block + <tag> inside pre block -Morbi facilisis accumsan orci non pharetra. -</pre>", - # 2 -"h3. Heading 3 + Morbi facilisis accumsan orci non pharetra. + </pre> + STR + # 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 text = STR_WITH_PRE.join("\n\n") |