summaryrefslogtreecommitdiffstats
path: root/test/unit/lib
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2023-02-14 23:16:25 +0000
committerGo MAEDA <maeda@farend.jp>2023-02-14 23:16:25 +0000
commite3dae0c21783806b4d3e961491fe33edc6a44d7a (patch)
tree263a2f0909b20aacb7bdf327b4c6a4f14cc1deed /test/unit/lib
parent5aae2664ef09fdae2e7d68a4d12718a36bcf2ab5 (diff)
downloadredmine-e3dae0c21783806b4d3e961491fe33edc6a44d7a.tar.gz
redmine-e3dae0c21783806b4d3e961491fe33edc6a44d7a.zip
Fix RuboCop offense Style/RedundantHeredocDelimiterQuotes (#36919).
git-svn-id: https://svn.redmine.org/redmine/trunk@22105 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/lib')
-rw-r--r--test/unit/lib/redmine/syntax_highlighting/rouge_test.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/unit/lib/redmine/syntax_highlighting/rouge_test.rb b/test/unit/lib/redmine/syntax_highlighting/rouge_test.rb
index 129a19cf0..cebc66c7f 100644
--- a/test/unit/lib/redmine/syntax_highlighting/rouge_test.rb
+++ b/test/unit/lib/redmine/syntax_highlighting/rouge_test.rb
@@ -33,6 +33,7 @@ class Redmine::SyntaxHighlighting::RougeTest < ActiveSupport::TestCase
end
def test_highlight_by_filename_should_distinguish_perl_and_prolog
+ # rubocop:disable Style/RedundantHeredocDelimiterQuotes
raw_perl = <<~'RAW_PERL'
#!/usr/bin/perl
print "Hello, world!\n";
@@ -49,6 +50,7 @@ class Redmine::SyntaxHighlighting::RougeTest < ActiveSupport::TestCase
<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
+ # rubocop:enable Style/RedundantHeredocDelimiterQuotes
filename = 'hello.pl'