2023-02-28 15:06:39 +01:00
|
|
|
FactoryBot.define do
|
2023-04-03 17:05:54 +02:00
|
|
|
factory :dossier_correction do
|
2023-02-28 15:06:39 +01:00
|
|
|
dossier
|
2023-07-12 12:00:52 +02:00
|
|
|
commentaire { association :commentaire, dossier: dossier }
|
|
|
|
reason { :incorrect }
|
2023-02-28 15:06:39 +01:00
|
|
|
resolved_at { nil }
|
|
|
|
|
|
|
|
trait :resolved do
|
|
|
|
resolved_at { Time.zone.now }
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|