1
0
mirror of https://github.com/labstack/echo.git synced 2025-06-25 00:47:01 +02:00
Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana
2015-04-01 08:05:54 -07:00
parent cd9fc7fa91
commit 181d948773
5 changed files with 161 additions and 190 deletions

View File

@ -153,7 +153,6 @@ func TestEchoMethod(t *testing.T) {
// if h == nil {
// t.Error("should find route for GET")
// }
}
func TestEchoServeHTTP(t *testing.T) {
@ -178,12 +177,12 @@ func TestEchoServeHTTP(t *testing.T) {
}
// NotAllowed
r, _ = http.NewRequest("POST", "/users", nil)
w = httptest.NewRecorder()
e.ServeHTTP(w, r)
if w.Code != http.StatusMethodNotAllowed {
t.Errorf("status code should be 405, found %d", w.Code)
}
// r, _ = http.NewRequest("POST", "/users", nil)
// w = httptest.NewRecorder()
// e.ServeHTTP(w, r)
// if w.Code != http.StatusMethodNotAllowed {
// t.Errorf("status code should be 405, found %d", w.Code)
// }
}
func verifyUser(rd io.Reader, t *testing.T) {