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

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

index 9a7d8a5f520265f94e7ca590970d0027f9e09b52..34e24669ac8b8f02da278d2309489295a195b29f 100644 (file)
@@ -298,41 +298,39 @@ EXPECTED
   end
 
   def test_table_with_line_breaks
-    raw = <<-RAW
-This is a table with line breaks:
-
-|cell11
-continued|cell12||
-|-cell21-||cell23
-cell23 line2
-cell23 *line3*|
-|cell31|cell32
-cell32 line2|cell33|
-
-RAW
+    raw = <<~RAW
+      This is a table with line breaks:
 
-    expected = <<-EXPECTED
-<p>This is a table with line breaks:</p>
+      |cell11
+      continued|cell12||
+      |-cell21-||cell23
+      cell23 line2
+      cell23 *line3*|
+      |cell31|cell32
+      cell32 line2|cell33|
 
-<table>
-  <tr>
-    <td>cell11<br />continued</td>
-    <td>cell12</td>
-    <td></td>
-  </tr>
-  <tr>
-    <td><del>cell21</del></td>
-    <td></td>
-    <td>cell23<br/>cell23 line2<br/>cell23 <strong>line3</strong></td>
-  </tr>
-  <tr>
-    <td>cell31</td>
-    <td>cell32<br/>cell32 line2</td>
-    <td>cell33</td>
-  </tr>
-</table>
-EXPECTED
+    RAW
+    expected = <<~EXPECTED
+      <p>This is a table with line breaks:</p>
 
+      <table>
+        <tr>
+          <td>cell11<br />continued</td>
+          <td>cell12</td>
+          <td></td>
+        </tr>
+        <tr>
+          <td><del>cell21</del></td>
+          <td></td>
+          <td>cell23<br/>cell23 line2<br/>cell23 <strong>line3</strong></td>
+        </tr>
+        <tr>
+          <td>cell31</td>
+          <td>cell32<br/>cell32 line2</td>
+          <td>cell33</td>
+        </tr>
+      </table>
+    EXPECTED
     assert_equal expected.gsub(%r{\s+}, ''), to_html(raw).gsub(%r{\s+}, '')
   end