test/parser_test.rb in trac-wiki-0.0.8 vs test/parser_test.rb in trac-wiki-0.0.9
- old
+ new
@@ -466,9 +466,10 @@
tc "<p>Hello ! world</p>\n", "Hello ! world\n"
tc "<p>Hello ! world</p>\n", "Hello !\nworld\n"
# Not escaping inside URLs
tc "<p><a href=\"http://example.org/~user/\">http://example.org/~user/</a></p>\n", "http://example.org/~user/"
tc "<p><a href=\"http://example.org/~user/\">http://example.org/~user/</a></p>\n", "[http://example.org/~user/]"
+ tc "<p>[[http://example.org/~user/]]</p>\n", "[http://example.org/~user/]", :no_link=>true
# Escaping links
tc "<p>http://www.example.org/</p>\n", "!http://www.example.org/"
tc "<p>[http://www.example.org/]</p>\n", "![!http://www.example.org/]"
tc "<p>[<a href=\"http://www.example.org/\">http://www.example.org/</a>]</p>\n", "![http://www.example.org/]"