mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-26 10:21:14 +00:00
cleanup: rubocop: fix Layout/ClosingHeredocIndentation in TextileFormatterTest#test_table_with_alignment
git-svn-id: http://svn.redmine.org/redmine/trunk@19165 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
f4f93d6a3f
commit
d463d8ef6a
@ -258,20 +258,18 @@ EXPECTED
|
||||
end
|
||||
|
||||
def test_table_with_alignment
|
||||
raw = <<-RAW
|
||||
|>. right|
|
||||
|<. left|
|
||||
|<>. justify|
|
||||
RAW
|
||||
|
||||
expected = <<-EXPECTED
|
||||
<table>
|
||||
<tr><td style="text-align:right;">right</td></tr>
|
||||
<tr><td style="text-align:left;">left</td></tr>
|
||||
<tr><td style="text-align:justify;">justify</td></tr>
|
||||
</table>
|
||||
EXPECTED
|
||||
|
||||
raw = <<~RAW
|
||||
|>. right|
|
||||
|<. left|
|
||||
|<>. justify|
|
||||
RAW
|
||||
expected = <<~EXPECTED
|
||||
<table>
|
||||
<tr><td style="text-align:right;">right</td></tr>
|
||||
<tr><td style="text-align:left;">left</td></tr>
|
||||
<tr><td style="text-align:justify;">justify</td></tr>
|
||||
</table>
|
||||
EXPECTED
|
||||
assert_equal expected.gsub(%r{\s+}, ''), to_html(raw).gsub(%r{\s+}, '')
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user