Merge pull request #557 from AlbinOS/patch-1

Fix typo on gin_test.go
This commit is contained in:
Javier Provecho Fernandez 2016-03-14 12:51:43 +01:00
commit a7d3be5b8a

View File

@ -244,7 +244,7 @@ func TestListOfRoutes(t *testing.T) {
func assertRoutePresent(t *testing.T, gotRoutes RoutesInfo, wantRoute RouteInfo) { func assertRoutePresent(t *testing.T, gotRoutes RoutesInfo, wantRoute RouteInfo) {
for _, gotRoute := range gotRoutes { for _, gotRoute := range gotRoutes {
if gotRoute.Path == wantRoute.Path && gotRoute.Method == wantRoute.Method { if gotRoute.Path == wantRoute.Path && gotRoute.Method == wantRoute.Method {
assert.Regexp(t, wantRoute.Path, gotRoute.Path) assert.Regexp(t, wantRoute.Handler, gotRoute.Handler)
return return
} }
} }