openstreetmap-website/test/factories/changeset_comments.rb
Andy Allan cb4f99fef2 Use implicit style for associations with factory overrides
This matches our usage of implicit style for associations generally,
e.g. `user`.
2023-09-06 10:20:23 +01:00

10 lines
182 B
Ruby

FactoryBot.define do
factory :changeset_comment do
sequence(:body) { |n| "Changeset comment #{n}" }
visible { true }
changeset
author :factory => :user
end
end