summaryrefslogtreecommitdiffstats
path: root/hugolib/page_test.go
diff options
context:
space:
mode:
authorNoah Campbell <noahcampbell@gmail.com>2013-09-17 15:52:40 -0700
committerNoah Campbell <noahcampbell@gmail.com>2013-09-17 15:52:40 -0700
commita82efe5bb131f1d4a811d3220c2ce40d56aa9eaf (patch)
tree5fad2ed5757fbcb7cb04c97a6490e75c0308e41e /hugolib/page_test.go
parent6b0752e8c0334dfb2275a2edb975ec13a2724134 (diff)
parent554375b2addc4b4425bb4d3f154374b027c113cf (diff)
Merge remote-tracking branch 'origin/parser' into mrg_praser
Also brought in parse for github.com/noahcampbell/akebia Conflicts: hugolib/page.go hugolib/page_test.go
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 72833bb7d..a2a4999df 100644
--- a/hugolib/page_test.go
+++ b/hugolib/page_test.go
@@ -133,7 +133,7 @@ func TestDegenerateEmptyPage(t *testing.T) {
t.Fatalf("Expected ReadFrom to return an error when an empty buffer is passed.")
}
- checkError(t, err, "test: unable to locate front matter")
+ checkError(t, err, "EOF")
}
func checkPageTitle(t *testing.T, page *Page, title string) {
@@ -242,9 +242,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")