From d463d8ef6a4dde8e4fab59ef12531252e2141b6c Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA <marutosijp2@yahoo.co.jp> Date: Fri, 22 Nov 2019 14:34:47 +0000 Subject: 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 --- .../wiki_formatting/textile_formatter_test.rb | 26 ++++++++++------------ 1 file changed, 12 insertions(+), 14 deletions(-) (limited to 'test') 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 -- cgit v1.2.3