1
0
mirror of https://github.com/labstack/echo.git synced 2025-07-05 00:58:47 +02:00

v2 is compiling now

Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana
2016-01-28 23:46:11 -08:00
parent dbd1e8e230
commit 688293b5ed
37 changed files with 832 additions and 1212 deletions

View File

@ -192,7 +192,7 @@ func TestContext(t *testing.T) {
// File
rec = test.NewResponseRecorder()
c = NewContext(req, rec, e)
err = c.File("testing/fixture/walle.png", "", false)
err = c.File("_fixture/images/walle.png", "", false)
if assert.NoError(t, err) {
assert.Equal(t, http.StatusOK, rec.Status())
assert.Equal(t, 219885, rec.Body.Len())
@ -201,7 +201,7 @@ func TestContext(t *testing.T) {
// File as attachment
rec = test.NewResponseRecorder()
c = NewContext(req, rec, e)
err = c.File("testing/fixture/walle.png", "WALLE.PNG", true)
err = c.File("_fixture/images/walle.png", "WALLE.PNG", true)
if assert.NoError(t, err) {
assert.Equal(t, http.StatusOK, rec.Status())
assert.Equal(t, rec.Header().Get(ContentDisposition), "attachment; filename=WALLE.PNG")