1
0
Fork 0

Fix factories

This commit is contained in:
Alex Kotov 2019-08-15 09:00:29 +05:00
parent ee288fb0cf
commit 47f8909391
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08

View file

@ -24,7 +24,7 @@ FactoryBot.define do
end
end
factory :member_person, parent: :supporter_person do
factory :member_person, parent: :initial_person do
after :create do |person, evaluator|
create :member_relationship,
person: person,
@ -32,7 +32,7 @@ FactoryBot.define do
end
end
factory :excluded_person, parent: :member_person do
factory :excluded_person, parent: :initial_person do
after :create do |person, evaluator|
create :excluded_relationship,
person: person,