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
Error:
Stats::Api::ApplicationsControllerTest#test_: Stats::Api::ApplicationsController should route GET /stats/api/applications/42/usage to/from {:id=>"42", :action=>"usage", :format=>:json}. :
TypeError: class or module required for rescue clause
After some debugging it seems that route_recognized? is throwing the assertion error but not rescuing properly:
Most people use shoulda-matchers with RSpec these days, so if there's an issue with Minitest then it's possible that there's a bug that we haven't patched yet. Feel free to submit a PR!
I'm upgrading
shoulda-matchers
to4.5.1
and the following test:returns the following output:
After some debugging it seems that
route_recognized?
is throwing the assertion error but not rescuing properly:Is this something already known? If so, I would gladly submit a PR to fix it.
The text was updated successfully, but these errors were encountered: