From 8f5190d5c0255feadb5d4c03f1d5caf7a747f8bf Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Fri, 22 Nov 2019 14:34:23 +0000 Subject: [PATCH] cleanup: rubocop: fix Layout/ClosingHeredocIndentation in TextileFormatterTest#test_table_with_line_breaks git-svn-id: http://svn.redmine.org/redmine/trunk@19163 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .../wiki_formatting/textile_formatter_test.rb | 62 +++++++++---------- 1 file changed, 30 insertions(+), 32 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 9a7d8a5f5..34e24669a 100644 --- a/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb +++ b/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb @@ -298,41 +298,39 @@ EXPECTED end def test_table_with_line_breaks - raw = <<-RAW -This is a table with line breaks: - -|cell11 -continued|cell12|| -|-cell21-||cell23 -cell23 line2 -cell23 *line3*| -|cell31|cell32 -cell32 line2|cell33| - -RAW + raw = <<~RAW + This is a table with line breaks: - expected = <<-EXPECTED -

This is a table with line breaks:

+ |cell11 + continued|cell12|| + |-cell21-||cell23 + cell23 line2 + cell23 *line3*| + |cell31|cell32 + cell32 line2|cell33| - - - - - - - - - - - - - - - - -
cell11
continued
cell12
cell21cell23
cell23 line2
cell23 line3
cell31cell32
cell32 line2
cell33
-EXPECTED + RAW + expected = <<~EXPECTED +

This is a table with line breaks:

+ + + + + + + + + + + + + + + + +
cell11
continued
cell12
cell21cell23
cell23 line2
cell23 line3
cell31cell32
cell32 line2
cell33
+ EXPECTED assert_equal expected.gsub(%r{\s+}, ''), to_html(raw).gsub(%r{\s+}, '') end -- 2.39.5