From: Toshi MARUYAMA Date: Fri, 22 Nov 2019 14:34:47 +0000 (+0000) Subject: cleanup: rubocop: fix Layout/ClosingHeredocIndentation in TextileFormatterTest#test_t... X-Git-Tag: 4.2.0~1475 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d463d8ef6a4dde8e4fab59ef12531252e2141b6c;p=redmine.git 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 --- 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 - - - - -
right
left
justify
-EXPECTED - + raw = <<~RAW + |>. right| + |<. left| + |<>. justify| + RAW + expected = <<~EXPECTED + + + + +
right
left
justify
+ EXPECTED assert_equal expected.gsub(%r{\s+}, ''), to_html(raw).gsub(%r{\s+}, '') end