demarches-normaliennes/spec/factories/notification.rb

13 lines
251 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|
unless notification.dossier
notification.dossier = create :dossier
end
end
end
end