]> 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:36 +0000 (14:34 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 22 Nov 2019 14:34:36 +0000 (14:34 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19164 e93f8b46-1217-0410-a6f0-8f06a7374b81

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

index 34e24669ac8b8f02da278d2309489295a195b29f..15d7666f7fe26382dae0d98029fa687bdb75257a 100644 (file)
@@ -276,24 +276,22 @@ EXPECTED
   end
 
   def test_table_with_trailing_whitespace
-    raw = <<-RAW
-This is a table with trailing whitespace in one row:
-
-|cell11|cell12|
-|cell21|cell22|
-|cell31|cell32|
-RAW
-
-    expected = <<-EXPECTED
-<p>This is a table with trailing whitespace in one row:</p>
+    raw = <<~RAW
+      This is a table with trailing whitespace in one row:
 
-<table>
-  <tr><td>cell11</td><td>cell12</td></tr>
-  <tr><td>cell21</td><td>cell22</td></tr>
-  <tr><td>cell31</td><td>cell32</td></tr>
-</table>
-EXPECTED
+      |cell11|cell12|
+      |cell21|cell22|
+      |cell31|cell32|
+    RAW
+    expected = <<~EXPECTED
+      <p>This is a table with trailing whitespace in one row:</p>
 
+      <table>
+        <tr><td>cell11</td><td>cell12</td></tr>
+        <tr><td>cell21</td><td>cell22</td></tr>
+        <tr><td>cell31</td><td>cell32</td></tr>
+      </table>
+    EXPECTED
     assert_equal expected.gsub(%r{\s+}, ''), to_html(raw).gsub(%r{\s+}, '')
   end