demarches-normaliennes/spec/factories/dossier_corrections.rb
2024-08-22 09:26:48 +02:00

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