Implement Page#footer and display footer in frontend.

This commit is contained in:
Tom Preston-Werner
2010-07-26 16:33:19 -07:00
parent 6dc19f0dde
commit 2bc9b2ec86
10 changed files with 87 additions and 3 deletions
@@ -0,0 +1,3 @@
xŽAj1 E³ö)t ’ÆÛBs€@…®=#
MÀ£â¸÷¯Ïíã¿ÏÛ¬ÖGžó©7UÀ…fò =Q$Ü2—Ä»²Æ%ϼEÜue
î·4=:dxXÔ§¢k 1`Î"Ä™Ï(iôÄ•¿þc
+1 -1
View File
@@ -1 +1 @@
94523d7ae48aeba575099dd12926420d8fd0425d
0ed8cbe0a25235bd867e65193c7d837c66b328ef
+12
View File
@@ -80,4 +80,16 @@ context "Page" do
page = @wiki.page('Eye Of Sauron')
assert_equal "Eye Of Sauron", page.title
end
test "top level footer" do
footer = @wiki.page('Home').footer
assert_equal 'Lord of the Rings wiki', footer.raw_data
assert_equal '_Footer.md', footer.path
end
test "nested footer" do
footer = @wiki.page('Eye Of Sauron').footer
assert_equal "Ones does not simply **walk** into Mordor!\n", footer.raw_data
assert_equal "Mordor/_Footer.md", footer.path
end
end