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
|
2018-12-15 05:57:22 +00:00
|
|
|
factory :initial_person, class: Person
|
2018-12-15 06:01:00 +00:00
|
|
|
|
|
|
|
factory :supporter_person, parent: :initial_person do
|
|
|
|
supporter_since { rand(10_000).days.ago.to_date }
|
|
|
|
end
|
2019-01-29 01:47:11 +00:00
|
|
|
|
|
|
|
factory :member_person, parent: :supporter_person do
|
|
|
|
member_since { rand(10_000).days.ago.to_date }
|
|
|
|
end
|
2019-01-29 02:13:25 +00:00
|
|
|
|
|
|
|
factory :excluded_person, parent: :member_person do
|
|
|
|
excluded_since { rand(10_000).days.ago.to_date }
|
|
|
|
end
|
2018-12-10 03:32:35 +00:00
|
|
|
end
|