From e4103e6181b69b46a3af3eba9a615f787e70ab79 Mon Sep 17 00:00:00 2001 From: Douglas Campos Date: Tue, 11 Jan 2011 22:50:59 -0200 Subject: [PATCH] testing link labeling current behavior --- test/test_markup.rb | 7 +++++++ 1 file changed, 7 insertions(+) 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 "

a http://example.com b

", 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 "

a Potato Heaad

", output + end + ######################################################################### # # Images