Fix sidebar, header, and footer, and add regression test.

This commit is contained in:
Dawa Ometto
2014-11-10 22:39:42 +01:00
parent 7264510ab2
commit c78a9f7950
2 changed files with 10 additions and 3 deletions
+7
View File
@@ -84,6 +84,13 @@ context "Frontend" do
assert_match /#{expected}/, actual
end
test "show sidebar, header, footer when present" do
divs = [@wiki.page("_Header").formatted_data, @wiki.page("_Footer").formatted_data, @wiki.page("_Sidebar").formatted_data]
@wiki.write_page("HeaderTest", :markdown, "Test", commit_details)
get "/HeaderTest"
divs.each {|div| assert_match div, last_response.body}
end
test "retain edit information" do
page1 = 'page1'
user1 = 'user1'