demarches-normaliennes/spec/factories/dossier_corrections.rb

13 lines
257 B
Ruby
Raw Normal View History

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