mirror of
https://github.com/redmine/redmine.git
synced 2025-11-02 11:25:55 +01:00
code cleanup: rubocop: fix Layout/ClosingHeredocIndentation in ApplicationHelperTest#test_syntax_highlight_ampersand_in_textile
git-svn-id: http://svn.redmine.org/redmine/trunk@18804 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -1170,16 +1170,14 @@ EXPECTED
|
||||
end
|
||||
|
||||
def test_syntax_highlight_ampersand_in_textile
|
||||
raw = <<-RAW
|
||||
<pre><code class="ruby">
|
||||
x = a & b
|
||||
</code></pre>
|
||||
RAW
|
||||
|
||||
expected = <<-EXPECTED
|
||||
<pre><code class=\"ruby syntaxhl\"><span class=\"n\">x</span> <span class=\"o\">=</span> <span class=\"n\">a</span> <span class=\"o\">&</span> <span class=\"n\">b</span></code></pre>
|
||||
EXPECTED
|
||||
|
||||
raw = <<~RAW
|
||||
<pre><code class="ruby">
|
||||
x = a & b
|
||||
</code></pre>
|
||||
RAW
|
||||
expected = <<~EXPECTED
|
||||
<pre><code class=\"ruby syntaxhl\"><span class=\"n\">x</span> <span class=\"o\">=</span> <span class=\"n\">a</span> <span class=\"o\">&</span> <span class=\"n\">b</span></code></pre>
|
||||
EXPECTED
|
||||
with_settings :text_formatting => 'textile' do
|
||||
assert_equal expected.gsub(%r{[\r\n\t]}, ''), textilizable(raw).gsub(%r{[\r\n\t]}, '')
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user