Abstract html/template dependency

Signed-off-by: Noah Campbell <noahcampbell@gmail.com>
This commit is contained in:
Fabrizio (Misto) Milo
2013-08-31 17:35:17 -07:00
committed by Noah Campbell
parent 0a9dc705f3
commit ee5865f239
6 changed files with 43 additions and 34 deletions

View File

@@ -142,13 +142,13 @@ func checkPageTitle(t *testing.T, page *Page, title string) {
}
func checkPageContent(t *testing.T, page *Page, content string) {
if page.Content != template.HTML(content) {
if page.Content != HTML(content) {
t.Fatalf("Page content is: %s. Expected %s", page.Content, content)
}
}
func checkPageSummary(t *testing.T, page *Page, summary string) {
if page.Summary != template.HTML(summary) {
if page.Summary != HTML(summary) {
t.Fatalf("Page summary is: `%s`. Expected `%s`", page.Summary, summary)
}
}