openstreetmap-website/test/factories/old_relation.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
186 B
Ruby

FactoryBot.define do
factory :old_relation do
timestamp { Time.now.utc }
visible { true }
version { 1 }
changeset
current_relation :factory => :relation
end
end