testing link labeling current behavior

This commit is contained in:
Douglas Campos
2011-01-11 22:50:59 -02:00
parent c5e4935e85
commit e4103e6181
+7
View File
@@ -162,6 +162,13 @@ context "Markup" do
assert_equal "<p>a <a href=\"http://example.com\">http://example.com</a> b</p>", page.formatted_data
end
test "page link with different text" do
@wiki.write_page("Potato", :markdown, "a [[Potato Heaad|Potato]] ", commit_details)
page = @wiki.page("Potato")
output = page.formatted_data
assert_equal "<p>a <a class=\"internal present\" href=\"/Potato\">Potato Heaad</a></p>", output
end
#########################################################################
#
# Images