diff options
Diffstat (limited to 'commands/commands_test.go')
-rw-r--r-- | commands/commands_test.go | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/commands/commands_test.go b/commands/commands_test.go index d37ec1f0d..5b5e9aa81 100644 --- a/commands/commands_test.go +++ b/commands/commands_test.go @@ -47,7 +47,7 @@ func TestExecute(t *testing.T) { c.Assert(resp.Err, qt.IsNil) result := resp.Result c.Assert(len(result.Sites) == 1, qt.Equals, true) - c.Assert(len(result.Sites[0].RegularPages()) == 1, qt.Equals, true) + c.Assert(len(result.Sites[0].RegularPages()) == 2, qt.Equals, true) c.Assert(result.Sites[0].Info.Params()["myparam"], qt.Equals, "paramproduction") }) @@ -364,9 +364,18 @@ Content `) + writeFile(t, filepath.Join(dir, contentDir, "hügö.md"), ` +--- +weight: 2 +--- + +This is hügö. + +`) + writeFile(t, filepath.Join(dir, "layouts", "_default", "single.html"), ` -Single: {{ .Title }} +Single: {{ .Title }}|{{ .Content }} `) |