diff --git a/test/test_markup.rb b/test/test_markup.rb index 7d729aba..3664bc5a 100644 --- a/test/test_markup.rb +++ b/test/test_markup.rb @@ -162,6 +162,13 @@ context "Markup" do assert_equal "
", 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 "", output + end + ######################################################################### # # Images