2024-04-29 00:17:15 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2021-04-29 17:29:47 +02:00
|
|
|
FactoryBot.define do
|
|
|
|
factory :archive do
|
|
|
|
time_span_type { 'everything' }
|
|
|
|
groupe_instructeurs { [association(:groupe_instructeur)] }
|
|
|
|
key { 'unique-key' }
|
|
|
|
|
|
|
|
trait :pending do
|
2022-07-07 18:15:48 +02:00
|
|
|
job_status { 'pending' }
|
2021-04-29 17:29:47 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
trait :generated do
|
2022-07-07 18:15:48 +02:00
|
|
|
job_status { 'generated' }
|
2021-04-29 17:29:47 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|