mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
cleanup: rubocop: fix Layout/ClosingHeredocIndentation in TextileFormatterTest#test_nested_lists
git-svn-id: http://svn.redmine.org/redmine/trunk@19168 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
60878a2ad3
commit
11383795ab
@ -133,32 +133,30 @@ class Redmine::WikiFormatting::TextileFormatterTest < ActionView::TestCase
|
||||
end
|
||||
|
||||
def test_nested_lists
|
||||
raw = <<-RAW
|
||||
# Item 1
|
||||
# Item 2
|
||||
** Item 2a
|
||||
** Item 2b
|
||||
# Item 3
|
||||
** Item 3a
|
||||
RAW
|
||||
|
||||
expected = <<-EXPECTED
|
||||
<ol>
|
||||
<li>Item 1</li>
|
||||
<li>Item 2
|
||||
<ul>
|
||||
<li>Item 2a</li>
|
||||
<li>Item 2b</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>Item 3
|
||||
<ul>
|
||||
<li>Item 3a</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ol>
|
||||
EXPECTED
|
||||
|
||||
raw = <<~RAW
|
||||
# Item 1
|
||||
# Item 2
|
||||
** Item 2a
|
||||
** Item 2b
|
||||
# Item 3
|
||||
** Item 3a
|
||||
RAW
|
||||
expected = <<~EXPECTED
|
||||
<ol>
|
||||
<li>Item 1</li>
|
||||
<li>Item 2
|
||||
<ul>
|
||||
<li>Item 2a</li>
|
||||
<li>Item 2b</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>Item 3
|
||||
<ul>
|
||||
<li>Item 3a</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ol>
|
||||
EXPECTED
|
||||
assert_equal expected.gsub(%r{\s+}, ''), to_html(raw).gsub(%r{\s+}, '')
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user