summaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2021-08-11 21:50:52 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2021-08-11 21:50:52 +0000
commitd92b75d49e590ea97f7fc63fbea61b2b6b5edf13 (patch)
treecc8daa80826fe667806f579d762da4d9c16994a3 /test/unit
parent5b0a10cc1a7cd259a845bef781864c0912431bb9 (diff)
downloadredmine-d92b75d49e590ea97f7fc63fbea61b2b6b5edf13.tar.gz
redmine-d92b75d49e590ea97f7fc63fbea61b2b6b5edf13.zip
Fixed Layout/HeredocIndentation: Use 2 spaces for indentation in a heredoc by using <<~ instead of <<- (#32424).
git-svn-id: http://svn.redmine.org/redmine/trunk@21163 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/lib/redmine/wiki_formatting/common_mark/formatter_test.rb22
1 files changed, 11 insertions, 11 deletions
diff --git a/test/unit/lib/redmine/wiki_formatting/common_mark/formatter_test.rb b/test/unit/lib/redmine/wiki_formatting/common_mark/formatter_test.rb
index 9f23dba30..9e4896e95 100644
--- a/test/unit/lib/redmine/wiki_formatting/common_mark/formatter_test.rb
+++ b/test/unit/lib/redmine/wiki_formatting/common_mark/formatter_test.rb
@@ -134,19 +134,19 @@ class Redmine::WikiFormatting::CommonMark::FormatterTest < ActionView::TestCase
end
def test_footnotes
- text = <<-STR
- This is some text[^1].
-
- [^1]: This is the foot note
+ text = <<~STR
+ This is some text[^1].
+
+ [^1]: This is the foot note
STR
- expected = <<-EXPECTED
- <p>This is some text<sup><a href="#fn1" id="fnref1">1</a></sup>.</p>
- <ol>
- <li id="fn1">
- <p>This is the foot note <a href="#fnref1">↩</a></p>
- </li>
- </ol>
+ expected = <<~EXPECTED
+ <p>This is some text<sup><a href="#fn1" id="fnref1">1</a></sup>.</p>
+ <ol>
+ <li id="fn1">
+ <p>This is the foot note <a href="#fnref1">↩</a></p>
+ </li>
+ </ol>
EXPECTED
assert_equal expected.gsub(%r{[\r\n\t]}, ''), format(text).gsub(%r{[\r\n\t]}, '')