2021-03-29 17:07:46 +02:00
|
|
|
FactoryBot.define do
|
|
|
|
factory :archive do
|
2021-04-27 18:54:58 +02:00
|
|
|
time_span_type { 'everything' }
|
2021-03-29 17:07:46 +02:00
|
|
|
groupe_instructeurs { [association(:groupe_instructeur)] }
|
2021-04-27 18:57:13 +02:00
|
|
|
key { 'unique-key' }
|
2021-03-29 17:07:46 +02:00
|
|
|
|
|
|
|
trait :pending do
|
|
|
|
status { 'pending' }
|
|
|
|
end
|
|
|
|
|
|
|
|
trait :generated do
|
|
|
|
status { 'generated' }
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|