diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-11-22 14:34:58 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-11-22 14:34:58 +0000 |
commit | 7e4d48d0848120d5bf407aa097f466d4a9bcf3f3 (patch) | |
tree | 45ed47157501660c5ee2d8f4d345ed3120477974 /test | |
parent | d463d8ef6a4dde8e4fab59ef12531252e2141b6c (diff) | |
download | redmine-7e4d48d0848120d5bf407aa097f466d4a9bcf3f3.tar.gz redmine-7e4d48d0848120d5bf407aa097f466d4a9bcf3f3.zip |
cleanup: rubocop: fix Layout/ClosingHeredocIndentation in TextileFormatterTest#test_table
git-svn-id: http://svn.redmine.org/redmine/trunk@19166 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb | 30 |
1 files 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 -<p>This is a table with empty cells:</p> + raw = <<~RAW + This is a table with empty cells: -<table> - <tr><td>cell11</td><td>cell12</td><td></td></tr> - <tr><td>cell21</td><td></td><td>cell23</td></tr> - <tr><td>cell31</td><td>cell32</td><td>cell33</td></tr> -</table> -EXPECTED + |cell11|cell12|| + |cell21||cell23| + |cell31|cell32|cell33| + RAW + expected = <<~EXPECTED + <p>This is a table with empty cells:</p> + <table> + <tr><td>cell11</td><td>cell12</td><td></td></tr> + <tr><td>cell21</td><td></td><td>cell23</td></tr> + <tr><td>cell31</td><td>cell32</td><td>cell33</td></tr> + </table> + EXPECTED assert_equal expected.gsub(%r{\s+}, ''), to_html(raw).gsub(%r{\s+}, '') end |