1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-04-02 14:01:38 +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 end
def test_should_not_handle_as_preformatted_text_tags_that_starts_with_pre def test_should_not_handle_as_preformatted_text_tags_that_starts_with_pre
text = <<-STR text = <<~STR
<pree> <pree>
This is some text This is some text
</pree> </pree>
STR STR
expected = <<~EXPECTED
expected = <<-EXPECTED <p>&lt;pree&gt;<br />
<p>&lt;pree&gt;<br /> This is some text<br />
This is some text<br /> &lt;/pree&gt;</p>
&lt;/pree&gt;</p> EXPECTED
EXPECTED
assert_equal expected.gsub(%r{[\r\n\t]}, ''), to_html(text).gsub(%r{[\r\n\t]}, '') assert_equal expected.gsub(%r{[\r\n\t]}, ''), to_html(text).gsub(%r{[\r\n\t]}, '')
end end