mirror of
https://github.com/redmine/redmine.git
synced 2026-05-08 23:16:18 +02:00
code cleanup: rubocop: fix Layout/ClosingHeredocIndentation in ApplicationHelperTest#test_non_closing_pre_blocks_should_be_closed
git-svn-id: http://svn.redmine.org/redmine/trunk@18807 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -1130,15 +1130,13 @@ class ApplicationHelperTest < Redmine::HelperTest
|
||||
end
|
||||
|
||||
def test_non_closing_pre_blocks_should_be_closed
|
||||
raw = <<-RAW
|
||||
<pre><code>
|
||||
RAW
|
||||
|
||||
expected = <<-EXPECTED
|
||||
<pre><code>
|
||||
</code></pre>
|
||||
EXPECTED
|
||||
|
||||
raw = <<~RAW
|
||||
<pre><code>
|
||||
RAW
|
||||
expected = <<~EXPECTED
|
||||
<pre><code>
|
||||
</code></pre>
|
||||
EXPECTED
|
||||
@project = Project.find(1)
|
||||
assert_equal expected.gsub(%r{[\r\n\t]}, ''), textilizable(raw).gsub(%r{[\r\n\t]}, '')
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user