Implement Page#footer and display footer in frontend.
This commit is contained in:
Binary file not shown.
@@ -0,0 +1,3 @@
|
||||
x�ŽAj1E³ö)t� ’ÆÛBs€@…®=#
|
||||
MÀ£â¸÷¯Ï�íã¿ÏÛ¬ÖGžó©7UÀ…fò =Q$Ü2—Ä»²�Æ%ϼEÜue
|
||||
î·4=:dx–XÔ§¢k 1`Î"Ä™Ï(iôÄ•¿þc
|
||||
Binary file not shown.
Binary file not shown.
@@ -1 +1 @@
|
||||
94523d7ae48aeba575099dd12926420d8fd0425d
|
||||
0ed8cbe0a25235bd867e65193c7d837c66b328ef
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user