[openstreetmap/openstreetmap-website] Use `where()` instead of `find()` to prevent RecordNotFound (PR #4203)
Tom Hughes
notifications at github.com
Fri Aug 25 23:30:02 UTC 2023
I don't see how a controller test can be testing for an exception - all a controller test can do is to observe the HTTP response code.
But if the tests are wrong then fix them.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4203#issuecomment-1694031211
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/4203/c1694031211 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20230825/f5bab8c5/attachment.htm>
More information about the rails-dev
mailing list