You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
378 B
15 lines
378 B
2 years ago
|
FactoryBot.define do
|
||
|
factory :organisation_relationship do
|
||
|
child_organisation { FactoryBot.create(:organisation) }
|
||
|
parent_organisation { FactoryBot.create(:organisation) }
|
||
|
|
||
|
trait :owning do
|
||
|
relationship_type { OrganisationRelationship::OWNING }
|
||
|
end
|
||
|
|
||
|
trait :managing do
|
||
|
relationship_type { OrganisationRelationship::MANAGING }
|
||
|
end
|
||
|
end
|
||
|
end
|