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|
|
|
|
|
unless commentaire.dossier
|
|
|
|
commentaire.dossier = create :dossier
|
|
|
|
end
|
|
|
|
end
|
2015-08-13 15:55:19 +02:00
|
|
|
end
|
2015-08-20 17:30:17 +02:00
|
|
|
end
|