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:
parent
5936e47729
commit
6bf2bbeb0c
@ -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><pree><br />
|
||||||
<p><pree><br />
|
This is some text<br />
|
||||||
This is some text<br />
|
</pree></p>
|
||||||
</pree></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
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user