mocking.URL does not catch methodNotAllowed error
skolos opened this issue · comments
Change example.go on line 51 from
mux.Handle(
"GET",
"/stuff/{id}",
to
mux.Handle(
"GET",
"/stufff/{id}",
and run tests. No error is caught. The reason is because methodNotAllowed (defined in trie_serve_mux.go) is a handler and mocking.URL does not see it as a problem.
Good catch, @skolos. Thanks!