diff options
author | Go MAEDA <maeda@farend.jp> | 2022-10-17 13:38:44 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2022-10-17 13:38:44 +0000 |
commit | 83b6af8c77d7eed41a900c950b2103c93c2cdc42 (patch) | |
tree | 343d0fc4c7caa28121a8ea75d2e904d7f3f0a111 /test/unit | |
parent | 295a6493260991fb0bf43a39211297cb103cc01b (diff) | |
download | redmine-83b6af8c77d7eed41a900c950b2103c93c2cdc42.tar.gz redmine-83b6af8c77d7eed41a900c950b2103c93c2cdc42.zip |
Merged r21902 from trunk to 5.0-stable (#37767).
git-svn-id: https://svn.redmine.org/redmine/branches/5.0-stable@21903 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb b/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb index 23f6d7538..9d2a1815d 100644 --- a/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb +++ b/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb @@ -719,6 +719,17 @@ class Redmine::WikiFormatting::TextileFormatterTest < ActionView::TestCase assert_equal expected.gsub(%r{[\r\n\t]}, ''), to_html(text).gsub(%r{[\r\n\t]}, '') end + def test_should_escape_tags_that_start_with_pre + text = <<~STR + <preä demo>Text + STR + + expected = <<~EXPECTED + <p><preä demo>Text</p> + EXPECTED + assert_equal expected.gsub(%r{[\r\n\t]}, ''), to_html(text).gsub(%r{[\r\n\t]}, '') + end + def test_should_remove_html_comments text = <<~STR <!-- begin --> |