1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
lpr-partynest/factories/people.rb

18 lines
440 B
Ruby
Raw Normal View History

2018-12-09 22:32:35 -05:00
# frozen_string_literal: true
FactoryBot.define do
factory :initial_person, class: Person
2018-12-15 01:01:00 -05:00
factory :supporter_person, parent: :initial_person do
supporter_since { rand(1000..10_000).days.ago.to_date }
2018-12-15 01:01:00 -05:00
end
2019-01-28 20:47:11 -05:00
factory :member_person, parent: :supporter_person do
member_since { supporter_since + rand(500) }
2019-01-28 20:47:11 -05:00
end
factory :excluded_person, parent: :member_person do
excluded_since { member_since + rand(500) }
end
2018-12-09 22:32:35 -05:00
end