Create an old_relation_member factory, and start using it for tests.

This commit is contained in:
Andy Allan 2017-04-25 15:42:30 +02:00
parent 27c3edae25
commit b46028b4f7
2 changed files with 62 additions and 31 deletions

View file

@ -0,0 +1,9 @@
FactoryGirl.define do
factory :old_relation_member do
member_role ""
old_relation
# Default to creating nodes, but could be ways or relations as members
association :member, :factory => :node
end
end