]> source.dussan.org Git - redmine.git/commitdiff
Fix RuboCop offense Style/RedundantHeredocDelimiterQuotes (#36919).
authorGo MAEDA <maeda@farend.jp>
Tue, 14 Feb 2023 23:16:25 +0000 (23:16 +0000)
committerGo MAEDA <maeda@farend.jp>
Tue, 14 Feb 2023 23:16:25 +0000 (23:16 +0000)
git-svn-id: https://svn.redmine.org/redmine/trunk@22105 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/lib/redmine/syntax_highlighting/rouge_test.rb

index 129a19cf0b15a6128ef223e3ddc6909e1682a208..cebc66c7f05f79cd1709bdc5c6dfac5fd0901d02 100644 (file)
@@ -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'