summaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-08 14:53:47 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-08 14:53:47 +0000
commit5da1580755dbd32e80b5076e1ab0a4268e3805f3 (patch)
treec93fe459023fbec2dbebb9237dad0cfed595db1a /test/unit
parent36373de2b96909dbd866019f4f3c3736a78b9b1b (diff)
downloadredmine-5da1580755dbd32e80b5076e1ab0a4268e3805f3.tar.gz
redmine-5da1580755dbd32e80b5076e1ab0a4268e3805f3.zip
cleanup: rubocop: fix Layout/IndentHeredoc in test/unit/lib/redmine/syntax_highlighting/rouge_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18965 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/lib/redmine/syntax_highlighting/rouge_test.rb32
1 files changed, 16 insertions, 16 deletions
diff --git a/test/unit/lib/redmine/syntax_highlighting/rouge_test.rb b/test/unit/lib/redmine/syntax_highlighting/rouge_test.rb
index 7df35ca64..8cdd51bc1 100644
--- a/test/unit/lib/redmine/syntax_highlighting/rouge_test.rb
+++ b/test/unit/lib/redmine/syntax_highlighting/rouge_test.rb
@@ -33,22 +33,22 @@ class Redmine::SyntaxHighlighting::RougeTest < ActiveSupport::TestCase
end
def test_highlight_by_filename_should_distinguish_perl_and_prolog
- raw_perl = <<'RAW_PERL'
-#!/usr/bin/perl
-print "Hello, world!\n";
-RAW_PERL
- expected_perl = <<'EXPECTED_PERL'
-<span class="c1">#!/usr/bin/perl</span>
-<span class="k">print</span> <span class="p">"</span><span class="s2">Hello, world!</span><span class="se">\n</span><span class="p">";</span>
-EXPECTED_PERL
- raw_prolog = <<'RAW_PROLOG'
-#!/usr/bin/swipl
-:- writeln('Hello, world!'),halt.
-RAW_PROLOG
- expected_prolog = <<'EXPECTED_PROLOG'
-<span class="c1">#!/usr/bin/swipl</span>
-<span class="p">:-</span> <span class="ss">writeln</span><span class="p">(</span><span class="ss">'Hello, world!'</span><span class="p">),</span><span class="ss">halt</span><span class="p">.</span>
-EXPECTED_PROLOG
+ raw_perl = <<~'RAW_PERL'
+ #!/usr/bin/perl
+ print "Hello, world!\n";
+ RAW_PERL
+ expected_perl = <<~'EXPECTED_PERL'
+ <span class="c1">#!/usr/bin/perl</span>
+ <span class="k">print</span> <span class="p">"</span><span class="s2">Hello, world!</span><span class="se">\n</span><span class="p">";</span>
+ EXPECTED_PERL
+ raw_prolog = <<~'RAW_PROLOG'
+ #!/usr/bin/swipl
+ :- writeln('Hello, world!'),halt.
+ RAW_PROLOG
+ expected_prolog = <<~'EXPECTED_PROLOG'
+ <span class="c1">#!/usr/bin/swipl</span>
+ <span class="p">:-</span> <span class="ss">writeln</span><span class="p">(</span><span class="ss">'Hello, world!'</span><span class="p">),</span><span class="ss">halt</span><span class="p">.</span>
+ EXPECTED_PROLOG
filename = 'hello.pl'