This commit is contained in:
Damon Zhao 2015-08-27 16:16:16 +08:00
parent f5b1fb44bb
commit 7bf9788326
1 changed files with 1 additions and 1 deletions

View File

@ -260,7 +260,7 @@ func TestContextGetCookie(t *testing.T) {
c, w, _ := createTestContext()
c.Request, _ = http.NewRequest("GET", "/get", nil)
c.Request.Header.Set("Cookie", "user=gin")
assert.Equal(t, w.Body.String(), "gin")
assert.Equal(t, c.GetCookie("Cookie"), "gin")
}
// Tests that the response is serialized as JSON