demarches-normaliennes/spec/factories/notification.rb

13 lines
248 B
Ruby
Raw Normal View History

FactoryGirl.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