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: + raw = <<~RAW + This is a table with line breaks: -|cell11 -continued|cell12|| -|-cell21-||cell23 -cell23 line2 -cell23 *line3*| -|cell31|cell32 -cell32 line2|cell33| + |cell11 + continued|cell12|| + |-cell21-||cell23 + cell23 line2 + cell23 *line3*| + |cell31|cell32 + cell32 line2|cell33| -RAW - - expected = <<-EXPECTED -

This is a table with line breaks:

- - - - - - - - - - - - - - - - - -
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