Create an old_relation_member factory, and start using it for tests.
This commit is contained in:
parent
27c3edae25
commit
b46028b4f7
2 changed files with 62 additions and 31 deletions
9
test/factories/old_relation_member.rb
Normal file
9
test/factories/old_relation_member.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue