Skip to content
This repository was archived by the owner on Sep 23, 2021. It is now read-only.

Commit f6dc3a0

Browse files
committed
Test for redirect
1 parent 4e0b63b commit f6dc3a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ func Test(t *testing.T) {
3434
g.Describe("App api", func() {
3535
var cookie string
3636

37-
g.It("Should return 200 on / ", func() {
37+
g.It("Should return 302 on / to redirect to file name ", func() {
3838
w := client("GET", "/", "")
3939

40-
g.Assert(w.Code).Equal(200)
40+
g.Assert(w.Code).Equal(302)
4141
cookie = w.HeaderMap.Get(Cookie)
4242
})
4343

0 commit comments

Comments
 (0)