1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-24 01:11:12 +00:00

cleanup: rubocop: fix Layout/ClosingHeredocIndentation in TextileFormatterTest#test_should_not_handle_as_preformatted_text_tags_that_starts_with_pre

git-svn-id: http://svn.redmine.org/redmine/trunk@19158 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2019-11-22 14:33:27 +00:00
parent 5936e47729
commit 6bf2bbeb0c

View File

@ -622,18 +622,16 @@ EXPECTED
end
def test_should_not_handle_as_preformatted_text_tags_that_starts_with_pre
text = <<-STR
<pree>
This is some text
</pree>
STR
expected = <<-EXPECTED
<p>&lt;pree&gt;<br />
This is some text<br />
&lt;/pree&gt;</p>
EXPECTED
text = <<~STR
<pree>
This is some text
</pree>
STR
expected = <<~EXPECTED
<p>&lt;pree&gt;<br />
This is some text<br />
&lt;/pree&gt;</p>
EXPECTED
assert_equal expected.gsub(%r{[\r\n\t]}, ''), to_html(text).gsub(%r{[\r\n\t]}, '')
end