summaryrefslogtreecommitdiffstats
path: root/test/unit/lib/redmine
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-22 14:35:09 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-22 14:35:09 +0000
commit60878a2ad311a9948d80a4650f69b229d13f05eb (patch)
tree2d764cae160f1cbc1f632acb310b7d453e8d8733 /test/unit/lib/redmine
parent7e4d48d0848120d5bf407aa097f466d4a9bcf3f3 (diff)
downloadredmine-60878a2ad311a9948d80a4650f69b229d13f05eb.tar.gz
redmine-60878a2ad311a9948d80a4650f69b229d13f05eb.zip
cleanup: rubocop: fix Layout/ClosingHeredocIndentation in TextileFormatterTest#test_blockquote
git-svn-id: http://svn.redmine.org/redmine/trunk@19167 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/lib/redmine')
-rw-r--r--test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb66
1 files changed, 32 insertions, 34 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 e6dcb5f18..35b850721 100644
--- a/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb
+++ b/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb
@@ -197,41 +197,39 @@ EXPECTED
def test_blockquote
# orig raw text
- raw = <<-RAW
-John said:
-> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas sed libero.
-> Nullam commodo metus accumsan nulla. Curabitur lobortis dui id dolor.
-> * Donec odio lorem,
-> * sagittis ac,
-> * malesuada in,
-> * adipiscing eu, dolor.
->
-> >Nulla varius pulvinar diam. Proin id arcu id lorem scelerisque condimentum. Proin vehicula turpis vitae lacus.
-> Proin a tellus. Nam vel neque.
-
-He's right.
-RAW
-
+ raw = <<~RAW
+ John said:
+ > Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas sed libero.
+ > Nullam commodo metus accumsan nulla. Curabitur lobortis dui id dolor.
+ > * Donec odio lorem,
+ > * sagittis ac,
+ > * malesuada in,
+ > * adipiscing eu, dolor.
+ >
+ > >Nulla varius pulvinar diam. Proin id arcu id lorem scelerisque condimentum. Proin vehicula turpis vitae lacus.
+ > Proin a tellus. Nam vel neque.
+
+ He's right.
+ RAW
# expected html
- expected = <<-EXPECTED
-<p>John said:</p>
-<blockquote>
-Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas sed libero.<br />
-Nullam commodo metus accumsan nulla. Curabitur lobortis dui id dolor.
-<ul>
- <li>Donec odio lorem,</li>
- <li>sagittis ac,</li>
- <li>malesuada in,</li>
- <li>adipiscing eu, dolor.</li>
-</ul>
-<blockquote>
-<p>Nulla varius pulvinar diam. Proin id arcu id lorem scelerisque condimentum. Proin vehicula turpis vitae lacus.</p>
-</blockquote>
-<p>Proin a tellus. Nam vel neque.</p>
-</blockquote>
-<p>He's right.</p>
-EXPECTED
-
+ expected = <<~EXPECTED
+ <p>John said:</p>
+ <blockquote>
+ Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas sed libero.<br />
+ Nullam commodo metus accumsan nulla. Curabitur lobortis dui id dolor.
+ <ul>
+ <li>Donec odio lorem,</li>
+ <li>sagittis ac,</li>
+ <li>malesuada in,</li>
+ <li>adipiscing eu, dolor.</li>
+ </ul>
+ <blockquote>
+ <p>Nulla varius pulvinar diam. Proin id arcu id lorem scelerisque condimentum. Proin vehicula turpis vitae lacus.</p>
+ </blockquote>
+ <p>Proin a tellus. Nam vel neque.</p>
+ </blockquote>
+ <p>He's right.</p>
+ EXPECTED
assert_equal expected.gsub(%r{\s+}, ''), to_html(raw).gsub(%r{\s+}, '')
end