2018-01-23 17:15:42 +01:00
|
|
|
FactoryBot.define do
|
2016-12-22 20:40:23 +01:00
|
|
|
factory :notification do
|
|
|
|
type_notif 'commentaire'
|
|
|
|
liste []
|
|
|
|
|
2016-12-26 18:37:27 +01:00
|
|
|
before(:create) do |notification, _evaluator|
|
2018-01-11 19:04:39 +01:00
|
|
|
if !notification.dossier
|
2016-12-22 20:40:23 +01:00
|
|
|
notification.dossier = create :dossier
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|