From 1f2e53dfd1c4ba0195caf0b7008d66a086751438 Mon Sep 17 00:00:00 2001 From: Albin Gilles Date: Wed, 9 Mar 2016 08:29:01 +0100 Subject: [PATCH] Fix typo on gin_test.go Fixes #550, change a duplicate assert on the Path of the route by an assert on Handler name associated with the route. --- gin_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gin_test.go b/gin_test.go index 15f480e..af95ab8 100644 --- a/gin_test.go +++ b/gin_test.go @@ -244,7 +244,7 @@ func TestListOfRoutes(t *testing.T) { func assertRoutePresent(t *testing.T, gotRoutes RoutesInfo, wantRoute RouteInfo) { for _, gotRoute := range gotRoutes { if gotRoute.Path == wantRoute.Path && gotRoute.Method == wantRoute.Method { - assert.Regexp(t, wantRoute.Path, gotRoute.Path) + assert.Regexp(t, wantRoute.Handler, gotRoute.Handler) return } }