diff --git a/context_test.go b/context_test.go index 8bd07f8..4c7ef90 100644 --- a/context_test.go +++ b/context_test.go @@ -173,14 +173,14 @@ func Test_Context(t *testing.T) { Convey("All Parameter", func() { m.Get("/:arg/:param/:flag", func(ctx *Context) int { - return len(ctx.AllParams()) + return com.ToStr(len(ctx.AllParams())) }) resp := httptest.NewRecorder() req, err := http.NewRequest("GET", "/arg/param/flag", nil) So(err, ShouldBeNil) m.ServeHTTP(resp,req) - So(resp.Body.Int(), ShouldEqual, 3) + So(resp.Body.String(), ShouldEqual, "3") }) Convey("Get file", func() {