1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-29 03:39:38 +00:00

cleanup: rubocop: fix Layout/ClosingHeredocIndentation in TextileFormatterTest#test_table

git-svn-id: http://svn.redmine.org/redmine/trunk@19166 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2019-11-22 14:34:58 +00:00
parent d463d8ef6a
commit 7e4d48d084

View File

@ -236,24 +236,22 @@ EXPECTED
end
def test_table
raw = <<-RAW
This is a table with empty cells:
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>
<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