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
|
||||
|
||||
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user