1
0
mirror of https://github.com/labstack/echo.git synced 2025-12-03 22:59:09 +02:00
Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana
2016-03-11 07:53:54 -08:00
parent 300d57894d
commit 09f3d3061f
6 changed files with 18 additions and 28 deletions

View File

@@ -263,7 +263,7 @@ func TestEchoMethodNotAllowed(t *testing.T) {
func TestEchoHTTPError(t *testing.T) {
m := http.StatusText(http.StatusBadRequest)
he := NewHTTPError(http.StatusBadRequest, m)
assert.Equal(t, http.StatusBadRequest, he.Code())
assert.Equal(t, http.StatusBadRequest, he.Code)
assert.Equal(t, m, he.Error())
}