mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-31 11:37:14 +00:00
Fix RuboCop offense Style/RedundantHeredocDelimiterQuotes (#36919).
git-svn-id: https://svn.redmine.org/redmine/trunk@22105 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
5aae2664ef
commit
e3dae0c217
@ -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'
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user