From f6dc3a04e3a9f425507f77eb7f6eaafb32d60f1b Mon Sep 17 00:00:00 2001 From: Alex Myasoedov Date: Thu, 18 Jan 2018 20:15:19 -0500 Subject: [PATCH] Test for redirect --- app_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app_test.go b/app_test.go index c6edb76..1a85d7d 100644 --- a/app_test.go +++ b/app_test.go @@ -34,10 +34,10 @@ func Test(t *testing.T) { g.Describe("App api", func() { var cookie string - g.It("Should return 200 on / ", func() { + g.It("Should return 302 on / to redirect to file name ", func() { w := client("GET", "/", "") - g.Assert(w.Code).Equal(200) + g.Assert(w.Code).Equal(302) cookie = w.HeaderMap.Get(Cookie) })