X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/834a821d3cc6cbcbc5f267799ede419047740854..a6ea75a2e25420e561ce669ca7c9bcee04ec6f2c:/test/factories/old_node.rb?ds=sidebyside diff --git a/test/factories/old_node.rb b/test/factories/old_node.rb index ecf096eca..e129b62f7 100644 --- a/test/factories/old_node.rb +++ b/test/factories/old_node.rb @@ -1,16 +1,13 @@ -FactoryGirl.define do +FactoryBot.define do factory :old_node do - latitude 1 * GeoRecord::SCALE - longitude 1 * GeoRecord::SCALE + latitude { 1 * GeoRecord::SCALE } + longitude { 1 * GeoRecord::SCALE } - # FIXME: needs changeset factory - changeset_id 1 + changeset + association :current_node, :factory => :node - # FIXME: needs node factory - node_id 1000 - - visible true - timestamp Time.now - version 1 + visible { true } + timestamp { Time.now } + version { 1 } end end