added config to test context

This commit is contained in:
Pedro Nasser
2016-07-30 18:57:37 -03:00
parent 970a16ec62
commit d2babb33ce

View File

@@ -19,6 +19,7 @@ func testRouter() *gin.Engine {
r.Use(func(c *gin.Context) {
c.Set("store", &datastore.Mock{})
c.Set("log", logrus.WithFields(logrus.Fields{}))
c.Set("config", &models.Config{})
c.Next()
})
Start(r)