summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-22 14:34:47 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-22 14:34:47 +0000
commitd463d8ef6a4dde8e4fab59ef12531252e2141b6c (patch)
tree22759170688b9763eebeee8f92923e1d418c6dc7 /test
parentf4f93d6a3fb4ee12e6315e1f87b1a157f1bd614e (diff)
downloadredmine-d463d8ef6a4dde8e4fab59ef12531252e2141b6c.tar.gz
redmine-d463d8ef6a4dde8e4fab59ef12531252e2141b6c.zip
cleanup: rubocop: fix Layout/ClosingHeredocIndentation in TextileFormatterTest#test_table_with_alignment
git-svn-id: http://svn.redmine.org/redmine/trunk@19165 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb26
1 files changed, 12 insertions, 14 deletions
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 15d7666f7..ed014e029 100644
--- a/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb
+++ b/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb
@@ -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