]> git.openstreetmap.org Git - rails.git/blobdiff - test/factories/old_relation_member.rb
Merge remote-tracking branch 'upstream/pull/5419'
[rails.git] / test / factories / old_relation_member.rb
index ad7eeb07874d0d4be3eee48b52859a995b62a88f..34e0bd310f84c5f8fc5f9b0557a393b75390bb60 100644 (file)
@@ -1,9 +1,10 @@
-FactoryGirl.define do
+FactoryBot.define do
   factory :old_relation_member do
-    member_role ""
+    sequence(:sequence_id)
+    member_role { "" }
 
     old_relation
     # Default to creating nodes, but could be ways or relations as members
-    association :member, :factory => :node
+    member :factory => :node
   end
 end