exhaustive test of discarded_dossier_deletion_job

This commit is contained in:
simon lehericey 2020-12-16 14:35:55 +01:00
parent ef11190cda
commit 5bc4fab0c4
2 changed files with 63 additions and 25 deletions

View file

@ -111,6 +111,9 @@ FactoryBot.define do
end
end
trait :brouillon do
end
trait :en_construction do
after(:create) do |dossier, _evaluator|
dossier.state = Dossier.states.fetch(:en_construction)