demarches-normaliennes/spec/factories/archive.rb

16 lines
297 B
Ruby
Raw Normal View History

2021-03-29 17:07:46 +02:00
FactoryBot.define do
factory :archive do
time_span_type { 'everything' }
2021-03-29 17:07:46 +02:00
groupe_instructeurs { [association(:groupe_instructeur)] }
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