From f4f93d6a3fb4ee12e6315e1f87b1a157f1bd614e Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Fri, 22 Nov 2019 14:34:36 +0000 Subject: [PATCH] cleanup: rubocop: fix Layout/ClosingHeredocIndentation in TextileFormatterTest#test_table_with_trailing_whitespace git-svn-id: http://svn.redmine.org/redmine/trunk@19164 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .../wiki_formatting/textile_formatter_test.rb | 30 +++++++++---------- 1 file changed, 14 insertions(+), 16 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 34e24669a..15d7666f7 100644 --- a/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb +++ b/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb @@ -276,24 +276,22 @@ EXPECTED end def test_table_with_trailing_whitespace - raw = <<-RAW -This is a table with trailing whitespace in one row: - -|cell11|cell12| -|cell21|cell22| -|cell31|cell32| -RAW - - expected = <<-EXPECTED -

This is a table with trailing whitespace in one row:

+ raw = <<~RAW + This is a table with trailing whitespace in one row: - - - - -
cell11cell12
cell21cell22
cell31cell32
-EXPECTED + |cell11|cell12| + |cell21|cell22| + |cell31|cell32| + RAW + expected = <<~EXPECTED +

This is a table with trailing whitespace in one row:

+ + + + +
cell11cell12
cell21cell22
cell31cell32
+ EXPECTED assert_equal expected.gsub(%r{\s+}, ''), to_html(raw).gsub(%r{\s+}, '') end -- 2.39.5