14 lines
327 B
Ruby
14 lines
327 B
Ruby
# frozen_string_literal: true
|
|
|
|
FactoryBot.define do
|
|
factory :initial_person, class: Person
|
|
|
|
factory :supporter_person, parent: :initial_person do
|
|
supporter_since { rand(10_000).days.ago.to_date }
|
|
end
|
|
|
|
factory :member_person, parent: :supporter_person do
|
|
member_since { rand(10_000).days.ago.to_date }
|
|
end
|
|
end
|