From: Toshi MARUYAMA Date: Thu, 17 Oct 2019 04:15:37 +0000 (+0000) Subject: code cleanup: rubocop: fix Layout/CommentIndentation and Layout/MultilineArrayBraceLa... X-Git-Tag: 4.1.0~394 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=89e9b05b3df02cb5e069ef7e2e72fce3816ebdca;p=redmine.git 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 --- 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 -

-  def foo
-  end
-
+

+        def foo
+        end
+      
-

-  Place your code here.
-
-
+

+        Place your code here.
+      
+
-Morbi facilisis accumsan orci non pharetra. + Morbi facilisis accumsan orci non pharetra. -
-Pre Content:
+      
+      Pre Content:
 
-h2. Inside pre
+      h2. Inside pre
 
- inside pre block
+       inside pre block
 
-Morbi facilisis accumsan orci non pharetra.
-
", - # 2 -"h3. Heading 3 + Morbi facilisis accumsan orci non pharetra. +
+ 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")