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:
parent
5936e47729
commit
6bf2bbeb0c
@ -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><pree><br />
|
||||
This is some text<br />
|
||||
</pree></p>
|
||||
EXPECTED
|
||||
|
||||
text = <<~STR
|
||||
<pree>
|
||||
This is some text
|
||||
</pree>
|
||||
STR
|
||||
expected = <<~EXPECTED
|
||||
<p><pree><br />
|
||||
This is some text<br />
|
||||
</pree></p>
|
||||
EXPECTED
|
||||
assert_equal expected.gsub(%r{[\r\n\t]}, ''), to_html(text).gsub(%r{[\r\n\t]}, '')
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user