summaryrefslogtreecommitdiffstats
path: root/hugolib/page_test.go
diff options
context:
space:
mode:
authorNoah Campbell <noahcampbell@gmail.com>2013-08-24 21:27:41 -0700
committerNoah Campbell <noahcampbell@gmail.com>2013-08-25 20:27:03 -0700
commit554375b2addc4b4425bb4d3f154374b027c113cf (patch)
treeca3957100a7574019c9871b5c113c2c47abbd9a3 /hugolib/page_test.go
parent1de19926640ffc2baa43a9691b5d277a7f22cf49 (diff)
Using new parser.
Diffstat (limited to 'hugolib/page_test.go')
-rw-r--r--hugolib/page_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/hugolib/page_test.go b/hugolib/page_test.go
index ec1695fb7..0f80e3a96 100644
--- a/hugolib/page_test.go
+++ b/hugolib/page_test.go
@@ -124,7 +124,7 @@ func TestDegenerateEmptyPage(t *testing.T) {
t.Fatalf("Expected ReadFrom to return an error when an empty buffer is passed.")
}
- checkError(t, err, "unable to locate front matter")
+ checkError(t, err, "EOF")
}
func checkPageTitle(t *testing.T, page *Page, title string) {
@@ -202,9 +202,9 @@ func TestDegenerateInvalidFrontMatterShortDelim(t *testing.T) {
r string
err string
}{
- {INVALID_FRONT_MATTER_SHORT_DELIM, "unable to match beginning front matter delimiter"},
- {INVALID_FRONT_MATTER_SHORT_DELIM_ENDING, "unable to match ending front matter delimiter"},
- {INVALID_FRONT_MATTER_MISSING, "unable to detect front matter"},
+ {INVALID_FRONT_MATTER_SHORT_DELIM, "Unable to locate frontmatter"},
+ {INVALID_FRONT_MATTER_SHORT_DELIM_ENDING, "EOF"},
+ {INVALID_FRONT_MATTER_MISSING, "Unable to locate frontmatter"},
}
for _, test := range tests {
_, err := ReadFrom(strings.NewReader(test.r), "invalid/front/matter/short/delim")