This repository has been archived on 2023-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
2018-12-10 03:32:35 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
FactoryBot.define do
|
2019-03-26 00:53:57 +00:00
|
|
|
factory :initial_person, class: Person do
|
|
|
|
first_name { Faker::Name.first_name }
|
|
|
|
middle_name { Faker::Name.first_name }
|
|
|
|
last_name { Faker::Name.last_name }
|
2019-03-26 20:09:10 +00:00
|
|
|
sex { Person.sexes.keys.sample }
|
|
|
|
date_of_birth { Faker::Date.backward }
|
|
|
|
place_of_birth { Faker::Address.city }
|
2019-03-26 00:53:57 +00:00
|
|
|
end
|
2018-12-15 06:01:00 +00:00
|
|
|
|
2019-06-05 04:26:11 +00:00
|
|
|
factory :supporter_person, parent: :initial_person
|
|
|
|
factory :member_person, parent: :supporter_person
|
|
|
|
factory :excluded_person, parent: :member_person
|
2018-12-10 03:32:35 +00:00
|
|
|
end
|