summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-22 14:35:20 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-22 14:35:20 +0000
commit11383795ab3bd86855c88a4fc4822e3c76699464 (patch)
tree238b77109a4fd6187a0a4af5f15fcd9cf056fd02 /test
parent60878a2ad311a9948d80a4650f69b229d13f05eb (diff)
downloadredmine-11383795ab3bd86855c88a4fc4822e3c76699464.tar.gz
redmine-11383795ab3bd86855c88a4fc4822e3c76699464.zip
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
Diffstat (limited to 'test')
-rw-r--r--test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb50
1 files changed, 24 insertions, 26 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 35b850721..1065f48fd 100644
--- a/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb
+++ b/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb
@@ -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