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
+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