]> git.openstreetmap.org Git - rails.git/blobdiff - test/factories/relation_member.rb
Fixed "Tab alignment" issue described in #4773
[rails.git] / test / factories / relation_member.rb
index b3f69e3e9b5d5950c53909777afe8f5cde65211f..f8e14905e36cd805b9eab2f86607ab81f8857c3b 100644 (file)
@@ -1,9 +1,10 @@
-FactoryGirl.define do
+FactoryBot.define do
   factory :relation_member do
-    member_role ""
+    sequence(:sequence_id)
+    member_role { "" }
 
     relation
     # Default to creating nodes, but could be ways or relations as members
-    association :member, :factory => :node
+    member :factory => :node
   end
 end