Context.Engine renamed to Context.engine

This commit is contained in:
Manu Mtz-Almeida
2015-05-22 02:24:13 +02:00
parent 880dd7f3cf
commit 5f76ba2022
3 changed files with 5 additions and 5 deletions

View File

@ -36,7 +36,7 @@ func createTestContext() (c *Context, w *httptest.ResponseRecorder, r *Engine) {
func TestContextReset(t *testing.T) {
router := New()
c := router.allocateContext()
assert.Equal(t, c.Engine, router)
assert.Equal(t, c.engine, router)
c.index = 2
c.Writer = &responseWriter{ResponseWriter: httptest.NewRecorder()}
@ -110,7 +110,7 @@ func TestContextCopy(t *testing.T) {
assert.Equal(t, cp.Request, c.Request)
assert.Equal(t, cp.index, AbortIndex)
assert.Equal(t, cp.Keys, c.Keys)
assert.Equal(t, cp.Engine, c.Engine)
assert.Equal(t, cp.engine, c.engine)
assert.Equal(t, cp.Params, c.Params)
}