2015-08-13 15:55:19 +02:00
|
|
|
FactoryGirl.define do
|
|
|
|
factory :commentaire do
|
2016-02-19 14:20:18 +01:00
|
|
|
body 'plop'
|
2016-12-26 18:37:27 +01:00
|
|
|
|
|
|
|
before(:create) do |commentaire, _evaluator|
|
2018-01-11 19:04:39 +01:00
|
|
|
if !commentaire.dossier
|
2016-12-26 18:37:27 +01:00
|
|
|
commentaire.dossier = create :dossier
|
|
|
|
end
|
|
|
|
end
|
2015-08-13 15:55:19 +02:00
|
|
|
end
|
2015-08-20 17:30:17 +02:00
|
|
|
end
|