From d463d8ef6a4dde8e4fab59ef12531252e2141b6c Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Fri, 22 Nov 2019 14:34:47 +0000 Subject: [PATCH] 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(-) 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 -- 2.39.5