diff options
author | spf13 <steve.francia@gmail.com> | 2014-05-01 14:11:56 -0400 |
---|---|---|
committer | spf13 <steve.francia@gmail.com> | 2014-05-01 14:11:56 -0400 |
commit | fb7d45e613e321410e847d39c3569434a5ffd81c (patch) | |
tree | 23937993dd6e265f6583ce50cda0ecf116e00342 /hugolib/page_taxonomy_test.go | |
parent | 3395e1cb9255a2c5b4101a8040474ec05185decf (diff) |
permitting empty files again. Fixing some tests to now pass.
Diffstat (limited to 'hugolib/page_taxonomy_test.go')
-rw-r--r-- | hugolib/page_taxonomy_test.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hugolib/page_taxonomy_test.go b/hugolib/page_taxonomy_test.go index 36924f9d5..68ff4171f 100644 --- a/hugolib/page_taxonomy_test.go +++ b/hugolib/page_taxonomy_test.go @@ -42,7 +42,9 @@ func TestParseTaxonomies(t *testing.T) { PAGE_YAML_WITH_TAXONOMIES_A, PAGE_YAML_WITH_TAXONOMIES_B, } { - p, err := ReadFrom(strings.NewReader(test), "page/with/taxonomy") + + p, _ := NewPage("page/with/taxonomy") + err := p.ReadFrom(strings.NewReader(test)) if err != nil { t.Fatalf("Failed parsing %q: %s", test, err) } |