From: Go MAEDA Date: Tue, 14 Feb 2023 23:16:25 +0000 (+0000) Subject: Fix RuboCop offense Style/RedundantHeredocDelimiterQuotes (#36919). X-Git-Tag: 5.1.0~242 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e3dae0c21783806b4d3e961491fe33edc6a44d7a;p=redmine.git Fix RuboCop offense Style/RedundantHeredocDelimiterQuotes (#36919). git-svn-id: https://svn.redmine.org/redmine/trunk@22105 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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 #!/usr/bin/swipl :- writeln('Hello, world!'),halt. EXPECTED_PROLOG + # rubocop:enable Style/RedundantHeredocDelimiterQuotes filename = 'hello.pl'