]> source.dussan.org Git - redmine.git/commitdiff
cleanup: rubocop: fix Layout/ClosingHeredocIndentation in TextileFormatterTest#test_n...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 22 Nov 2019 14:35:20 +0000 (14:35 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 22 Nov 2019 14:35:20 +0000 (14:35 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19168 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb

index 35b8507215391aa897e6c92469dbe99ac5c97fcd..1065f48fd57aaf0bebe374539b626bc2bcfe2ead 100644 (file)
@@ -133,32 +133,30 @@ class Redmine::WikiFormatting::TextileFormatterTest < ActionView::TestCase
   end
 
   def test_nested_lists
-    raw = <<-RAW
-# Item 1
-# Item 2
-** Item 2a
-** Item 2b
-# Item 3
-** Item 3a
-RAW
-
-    expected = <<-EXPECTED
-<ol>
-  <li>Item 1</li>
-  <li>Item 2
-    <ul>
-      <li>Item 2a</li>
-      <li>Item 2b</li>
-    </ul>
-  </li>
-  <li>Item 3
-    <ul>
-      <li>Item 3a</li>
-    </ul>
-  </li>
-</ol>
-EXPECTED
-
+    raw = <<~RAW
+      # Item 1
+      # Item 2
+      ** Item 2a
+      ** Item 2b
+      # Item 3
+      ** Item 3a
+    RAW
+    expected = <<~EXPECTED
+      <ol>
+        <li>Item 1</li>
+        <li>Item 2
+          <ul>
+            <li>Item 2a</li>
+            <li>Item 2b</li>
+          </ul>
+        </li>
+        <li>Item 3
+          <ul>
+            <li>Item 3a</li>
+          </ul>
+        </li>
+      </ol>
+    EXPECTED
     assert_equal expected.gsub(%r{\s+}, ''), to_html(raw).gsub(%r{\s+}, '')
   end