From: Toshi MARUYAMA Date: Fri, 22 Nov 2019 14:34:11 +0000 (+0000) Subject: cleanup: rubocop: fix Layout/ClosingHeredocIndentation in TextileFormatterTest#test_t... X-Git-Tag: 4.2.0~1478 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1fb33ba05c633dfedae438c5f88979b93912d8a7;p=redmine.git cleanup: rubocop: fix Layout/ClosingHeredocIndentation in TextileFormatterTest#test_tables_with_lists git-svn-id: http://svn.redmine.org/redmine/trunk@19162 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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 fb9e5a967..9a7d8a5f5 100644 --- a/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb +++ b/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb @@ -337,38 +337,36 @@ EXPECTED end def test_tables_with_lists - raw = <<-RAW -This is a table with lists: - -|cell11|cell12| -|cell21|ordered list -# item -# item 2| -|cell31|unordered list -* item -* item 2| - -RAW - - expected = <<-EXPECTED -

This is a table with lists:

- - - - - - - - - - - - - - -
cell11cell12
cell21ordered list
# item
# item 2
cell31unordered list
* item
* item 2
-EXPECTED - + raw = <<~RAW + This is a table with lists: + + |cell11|cell12| + |cell21|ordered list + # item + # item 2| + |cell31|unordered list + * item + * item 2| + + RAW + expected = <<~EXPECTED +

This is a table with lists:

+ + + + + + + + + + + + + + +
cell11cell12
cell21ordered list
# item
# item 2
cell31unordered list
* item
* item 2
+ EXPECTED assert_equal expected.gsub(%r{\s+}, ''), to_html(raw).gsub(%r{\s+}, '') end