BasePath is not longer an exported field, but a method instead

This commit is contained in:
Manu Mtz-Almeida
2015-07-08 04:27:23 +02:00
parent 0873992f38
commit fc5e355724
4 changed files with 13 additions and 9 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ func init() {
func TestCreateEngine(t *testing.T) {
router := New()
assert.Equal(t, "/", router.BasePath)
assert.Equal(t, "/", router.basePath)
assert.Equal(t, router.engine, router)
assert.Empty(t, router.Handlers)
}