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

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

index 15d7666f7fe26382dae0d98029fa687bdb75257a..ed014e029a76dfcad23c53eac305b2749bbfe2a0 100644 (file)
@@ -258,20 +258,18 @@ EXPECTED
   end
 
   def test_table_with_alignment
-    raw = <<-RAW
-|>. right|
-|<. left|
-|<>. justify|
-RAW
-
-    expected = <<-EXPECTED
-<table>
-  <tr><td style="text-align:right;">right</td></tr>
-  <tr><td style="text-align:left;">left</td></tr>
-  <tr><td style="text-align:justify;">justify</td></tr>
-</table>
-EXPECTED
-
+    raw = <<~RAW
+      |>. right|
+      |<. left|
+      |<>. justify|
+    RAW
+    expected = <<~EXPECTED
+      <table>
+        <tr><td style="text-align:right;">right</td></tr>
+        <tr><td style="text-align:left;">left</td></tr>
+        <tr><td style="text-align:justify;">justify</td></tr>
+      </table>
+    EXPECTED
     assert_equal expected.gsub(%r{\s+}, ''), to_html(raw).gsub(%r{\s+}, '')
   end