From 7e4d48d0848120d5bf407aa097f466d4a9bcf3f3 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Fri, 22 Nov 2019 14:34:58 +0000 Subject: [PATCH] cleanup: rubocop: fix Layout/ClosingHeredocIndentation in TextileFormatterTest#test_table git-svn-id: http://svn.redmine.org/redmine/trunk@19166 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 ed014e029..e6dcb5f18 100644 --- a/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb +++ b/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb @@ -236,24 +236,22 @@ EXPECTED end def test_table - raw = <<-RAW -This is a table with empty cells: - -|cell11|cell12|| -|cell21||cell23| -|cell31|cell32|cell33| -RAW - - expected = <<-EXPECTED -

This is a table with empty cells:

+ raw = <<~RAW + This is a table with empty cells: - - - - -
cell11cell12
cell21cell23
cell31cell32cell33
-EXPECTED + |cell11|cell12|| + |cell21||cell23| + |cell31|cell32|cell33| + RAW + expected = <<~EXPECTED +

This is a table with empty cells:

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