From fd04a4a2309f956b59d6b0aa6fb9310e9415619c Mon Sep 17 00:00:00 2001 From: minodisk Date: Fri, 5 Feb 2016 18:59:53 +0900 Subject: [PATCH] Add test for #16 --- command/post_test.go | 21 +++++++++++++++-- model/post.go | 25 +++++++++++++------- model/post_test.go | 56 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 91 insertions(+), 11 deletions(-) diff --git a/command/post_test.go b/command/post_test.go index 2edbf06..0134f9b 100644 --- a/command/post_test.go +++ b/command/post_test.go @@ -10,6 +10,7 @@ import ( "net/http" "net/http/httptest" "os" + "path/filepath" "testing" "time" @@ -607,8 +608,8 @@ func TestCreatePost(t *testing.T) { t.Fatal(err) } err = ioutil.WriteFile("mine/2000/01/01-example-title.md", []byte(`