Project

General

Profile

Defect #8395 » test_for_8395.patch

Marius BĂLTEANU, 2018-11-26 00:42

View differences:

test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb
assert_nothing_raised { to_html(" \v") }
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
assert_equal expected.gsub(%r{[\r\n\t]}, ''), to_html(text).gsub(%r{[\r\n\t]}, '')
end
private
def assert_html_output(to_test, expect_paragraph = true)
(4-4/4)