[openstreetmap/openstreetmap-website] Ensure consistent naming for all factory files (PR #6607)

Pablo Brasero notifications at github.com
Thu Dec 11 14:06:41 UTC 2025


pablobm left a comment (openstreetmap/openstreetmap-website#6607)

>From those options, I prefer `<singular>_factory.rb`, because:

- The factory within is defined in the singular. It feels weird to me that `factories/users.rb` defines internally a `factory :user`.
- The suffix helps telling the file from others in an IDE (in a list of tabs or similar).

But I have worked in projects with the plural before and I can live with it. In fact I think plural might be more widespread...

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6607#issuecomment-3642095560
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/6607/c3642095560 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20251211/440b9a98/attachment.htm>


More information about the rails-dev mailing list