demarches-normaliennes/spec/factories/notification.rb

13 lines
247 B
Ruby
Raw Normal View History

2018-01-23 17:15:42 +01:00
FactoryBot.define do
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
notification.dossier = create :dossier
end
end
end
end