openstreetmap-website/test
Andy Allan 1700c23dd1 Prefer find_by() instead of where().first
These are very similar, differing only if we would expect multiple
results and the sorting is important. However, in all our cases
we're only expecting one result to be returned, and so find_by is
easier to read.
2023-10-04 17:53:58 +01:00
..
abilities Remove Geonames and geocoder.ca 2023-01-09 21:23:48 +00:00
controllers Prefer find_by() instead of where().first 2023-10-04 17:53:58 +01:00
factories Use implicit style for associations with factory overrides 2023-09-06 10:20:23 +01:00
gpx/fixtures Remove unused directories 2020-03-18 15:04:18 +01:00
helpers Remove <picture>s around <img srcset=...> 2023-10-03 03:06:12 +03:00
http Remove Geonames and geocoder.ca 2023-01-09 21:23:48 +00:00
integration Load openid signing key from endpoint during openid connect test 2023-10-03 18:55:10 +01:00
javascripts Replace querystring parser with qs yarn module 2020-08-06 20:51:55 +01:00
jobs Send trace import result notification immediately 2019-07-15 21:45:07 +01:00
lib Fix new rubocop warnings 2023-09-26 18:42:57 +01:00
mailers Add a test for i18n interpolation into plain and html parts 2020-12-02 13:02:25 +00:00
models Prefer find_by() instead of where().first 2023-10-04 17:53:58 +01:00
system Fix new rubocop warnings 2023-09-26 18:42:57 +01:00
validators Fix new rubocop warnings 2022-03-15 19:24:09 +00:00
application_system_test_case.rb Switch to using selenium for system tests 2020-04-22 13:51:37 +01:00
test_helper.rb Fix new rubocop warnings 2023-09-26 18:42:57 +01:00