openstreetmap-website/test/factories/old_node.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

13 lines
252 B
Ruby

FactoryBot.define do
factory :old_node do
latitude { 1 * GeoRecord::SCALE }
longitude { 1 * GeoRecord::SCALE }
changeset
current_node :factory => :node
visible { true }
timestamp { Time.now.utc }
version { 1 }
end
end