You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My tool analyses Hanami apps using router.recognize.
I noticed that recognize method returns a RecognizedRoute whose verb is always GET even for POST or other methods.
route=router.recognize("/images/bulk",method: "POST")expect(route.routable?).tobe(true)expect(route.verb).toeq("POST")# => GET returned 😱
I have a router something like:
My tool analyses Hanami apps using
router.recognize
.I noticed that
recognize
method returns aRecognizedRoute
whoseverb
is alwaysGET
even forPOST
or other methods.Repro
Clone #270
And run
bundle exec rspec
.The text was updated successfully, but these errors were encountered: