X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/24cd3af31e3d82b3ed203ae8e58218dd2eab5b21..0eb2afa83aee217fc2c6399bd23d0d8152c09eb5:/test/factories/old_node.rb diff --git a/test/factories/old_node.rb b/test/factories/old_node.rb index 403ffc0ea..e129b62f7 100644 --- a/test/factories/old_node.rb +++ b/test/factories/old_node.rb @@ -1,15 +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 } 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