demarches-normaliennes/spec/factories/notification.rb
2016-12-26 18:37:27 +01:00

12 lines
251 B
Ruby

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