diff --git a/test/unit/lib/redmine/wiki_formatting/markdown_html_parser_test.rb b/test/unit/lib/redmine/wiki_formatting/markdown_html_parser_test.rb index 45a5a52f9..4fbc5f775 100644 --- a/test/unit/lib/redmine/wiki_formatting/markdown_html_parser_test.rb +++ b/test/unit/lib/redmine/wiki_formatting/markdown_html_parser_test.rb @@ -31,8 +31,15 @@ class Redmine::WikiFormatting::MarkdownHtmlParserTest < ActiveSupport::TestCase assert_equal 'foo [bar](http://example.com/) baz', @parser.to_text('foobarbaz') + assert_equal 'foo http://example.com/ baz', @parser.to_text('foobaz') + + assert_equal 'foo bar baz', + @parser.to_text('foobarbaz') + + assert_equal 'foo baz', + @parser.to_text('foobaz') end def test_html_tables_conversion diff --git a/test/unit/lib/redmine/wiki_formatting/textile_html_parser_test.rb b/test/unit/lib/redmine/wiki_formatting/textile_html_parser_test.rb index 86d7e66d2..aaeb49018 100644 --- a/test/unit/lib/redmine/wiki_formatting/textile_html_parser_test.rb +++ b/test/unit/lib/redmine/wiki_formatting/textile_html_parser_test.rb @@ -31,8 +31,15 @@ class Redmine::WikiFormatting::TextileHtmlParserTest < ActiveSupport::TestCase assert_equal 'foo "bar":http://example.com/ baz', @parser.to_text('foobarbaz') + assert_equal 'foo http://example.com/ baz', @parser.to_text('foobaz') + + assert_equal 'foo bar baz', + @parser.to_text('foobarbaz') + + assert_equal 'foo baz', + @parser.to_text('foobaz') end def test_html_tables_conversion