add archive model

This commit is contained in:
Christophe Robillard 2021-03-29 17:07:46 +02:00
parent 959026ca4f
commit c25f3c79d9
6 changed files with 153 additions and 0 deletions

14
spec/factories/archive.rb Normal file
View file

@ -0,0 +1,14 @@
FactoryBot.define do
factory :archive do
content_type { 'everything' }
groupe_instructeurs { [association(:groupe_instructeur)] }
trait :pending do
status { 'pending' }
end
trait :generated do
status { 'generated' }
end
end
end