[openstreetmap/openstreetmap-website] Removes optional using first comments records (PR #5744)

Tom Hughes notifications at github.com
Mon Mar 3 20:33:59 UTC 2025


tomhughes left a comment (openstreetmap/openstreetmap-website#5744)

I don't think this is the right approach to the tests - a factory that modifies the record's parent seems wrong to me.

Probably the `note_comment` factory shouldn't be defaulting to creating an `opened` comment now, as in the future there won't be any such thing. It should probably default to `commented` and the `note` factory should generate food defaults for the initial open and tests should be adapted to all that.

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

Message ID: <openstreetmap/openstreetmap-website/pull/5744/c2695474775 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250303/d64f97bf/attachment.htm>


More information about the rails-dev mailing list