demarches-normaliennes/spec/factories/notification.rb
2018-01-12 11:32:43 +01:00

12 lines
248 B
Ruby

FactoryGirl.define do
factory :notification do
type_notif 'commentaire'
liste []
before(:create) do |notification, _evaluator|
if !notification.dossier
notification.dossier = create :dossier
end
end
end
end