openstreetmap-website/test/models
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
..
acl_test.rb Fix new rubocop warnings 2022-03-15 19:24:09 +00:00
changeset_comment_test.rb Fix new rubocop warnings 2022-03-15 19:24:09 +00:00
changeset_tag_test.rb Use factories for tag uniqueness tests 2022-03-30 17:15:11 +01:00
changeset_test.rb Prefer keyword arguments when method has optional boolean arguments 2020-11-13 10:22:55 +00:00
client_application_test.rb Fix new rubocop warnings 2022-03-15 19:24:09 +00:00
diary_comment_test.rb Refactor diary entry tests to use User factory 2017-02-19 16:43:32 +00:00
diary_entry_test.rb Fix some ruby 3 compatibility issues 2021-04-22 19:20:25 +01:00
friend_test.rb Remove the api_fixtures helper 2017-06-01 10:59:48 +01:00
issue_comment_test.rb Put issue comments through kramdown formatter 2022-05-06 13:36:59 +01:00
issue_test.rb Fix new rubocop warnings 2022-03-15 19:24:09 +00:00
language_test.rb Fix rubocop warnings 2017-10-05 19:18:38 +01:00
message_test.rb Fix new rubocop warnings 2022-03-15 19:24:09 +00:00
node_tag_test.rb Use factories for tag uniqueness tests 2022-03-30 17:15:11 +01:00
node_test.rb Prefer find_by() instead of where().first 2023-10-04 17:53:58 +01:00
note_comment_test.rb Fix new rubocop warnings 2022-03-15 19:24:09 +00:00
note_test.rb Fix new rubocop warnings 2022-03-15 19:24:09 +00:00
oauth_nonce_test.rb Fix rubocop-minitest warnings 2020-04-15 19:07:13 +01:00
oauth_token_test.rb Fix new rubocop warnings 2022-03-15 19:24:09 +00:00
old_node_tag_test.rb Use factories for tag uniqueness tests 2022-03-30 17:15:11 +01:00
old_node_test.rb Move the xml format test for old nodes to the controller test 2021-09-15 17:05:34 +01:00
old_relation_tag_test.rb Use factories for tag uniqueness tests 2022-03-30 17:15:11 +01:00
old_relation_test.rb Remove the api_fixtures helper 2017-06-01 10:59:48 +01:00
old_way_tag_test.rb Use factories for tag uniqueness tests 2022-03-30 17:15:11 +01:00
old_way_test.rb Remove both Potlatch versions 2021-01-05 21:18:45 +00:00
redaction_test.rb Fix new rubocop warnings 2022-03-15 19:24:09 +00:00
relation_member_test.rb Add validation for relation member roles 2022-06-09 19:21:08 +01:00
relation_tag_test.rb Use factories for tag uniqueness tests 2022-03-30 17:15:11 +01:00
relation_test.rb Introduce relation member limit 2022-02-02 13:15:40 +01:00
report_test.rb Format report text with kramdown 2022-04-29 01:31:39 +01:00
request_token_test.rb Fix new rubocop warnings 2022-03-15 19:24:09 +00:00
trace_test.rb Prefer find_by() instead of where().first 2023-10-04 17:53:58 +01:00
tracepoint_test.rb Fix new rubocop warnings 2022-03-15 19:24:09 +00:00
tracetag_test.rb Fix some ruby 3 compatibility issues 2021-04-22 19:20:25 +01:00
user_preference_test.rb Fix new rubocop warnings 2022-03-15 19:24:09 +00:00
user_test.rb Fix predicate method names in the user model 2023-08-15 18:53:14 +01:00
user_token_test.rb Remove unused user_tokens fixture and pointless test. 2017-01-25 16:43:04 +00:00
way_node_test.rb Remove the api_fixtures helper 2017-06-01 10:59:48 +01:00
way_tag_test.rb Use factories for tag uniqueness tests 2022-03-30 17:15:11 +01:00
way_test.rb Remove some old debugging comments 2022-12-21 12:05:15 +00:00