mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00: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:
parent
ba370734a9
commit
68ada471f4
@ -1130,15 +1130,13 @@ class ApplicationHelperTest < Redmine::HelperTest
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_non_closing_pre_blocks_should_be_closed
|
def test_non_closing_pre_blocks_should_be_closed
|
||||||
raw = <<-RAW
|
raw = <<~RAW
|
||||||
<pre><code>
|
<pre><code>
|
||||||
RAW
|
RAW
|
||||||
|
expected = <<~EXPECTED
|
||||||
expected = <<-EXPECTED
|
|
||||||
<pre><code>
|
<pre><code>
|
||||||
</code></pre>
|
</code></pre>
|
||||||
EXPECTED
|
EXPECTED
|
||||||
|
|
||||||
@project = Project.find(1)
|
@project = Project.find(1)
|
||||||
assert_equal expected.gsub(%r{[\r\n\t]}, ''), textilizable(raw).gsub(%r{[\r\n\t]}, '')
|
assert_equal expected.gsub(%r{[\r\n\t]}, ''), textilizable(raw).gsub(%r{[\r\n\t]}, '')
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user