1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-19 23:11:12 +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:
Toshi MARUYAMA 2019-11-22 14:35:20 +00:00
parent 60878a2ad3
commit 11383795ab

View File

@ -133,17 +133,16 @@ class Redmine::WikiFormatting::TextileFormatterTest < ActionView::TestCase
end end
def test_nested_lists def test_nested_lists
raw = <<-RAW raw = <<~RAW
# Item 1 # Item 1
# Item 2 # Item 2
** Item 2a ** Item 2a
** Item 2b ** Item 2b
# Item 3 # Item 3
** Item 3a ** Item 3a
RAW RAW
expected = <<~EXPECTED
expected = <<-EXPECTED <ol>
<ol>
<li>Item 1</li> <li>Item 1</li>
<li>Item 2 <li>Item 2
<ul> <ul>
@ -156,9 +155,8 @@ RAW
<li>Item 3a</li> <li>Item 3a</li>
</ul> </ul>
</li> </li>
</ol> </ol>
EXPECTED EXPECTED
assert_equal expected.gsub(%r{\s+}, ''), to_html(raw).gsub(%r{\s+}, '') assert_equal expected.gsub(%r{\s+}, ''), to_html(raw).gsub(%r{\s+}, '')
end end