14 lines
288 B
Ruby
14 lines
288 B
Ruby
# frozen_string_literal: true
|
|
|
|
FactoryBot.define do
|
|
factory :dossier_correction do
|
|
dossier
|
|
commentaire { association :commentaire, dossier: dossier }
|
|
reason { :incorrect }
|
|
resolved_at { nil }
|
|
|
|
trait :resolved do
|
|
resolved_at { Time.zone.now }
|
|
end
|
|
end
|
|
end
|