Avis: add claimant gestionnaire to track who asks for an avis

This commit is contained in:
Simon Lehericey 2017-05-23 13:28:17 +02:00
parent 23e57f5cc4
commit 64f7cab3cf
9 changed files with 33 additions and 11 deletions

View file

@ -13,5 +13,11 @@ FactoryGirl.define do
avis.dossier = create :dossier
end
end
before(:create) do |avis, _evaluator|
unless avis.claimant
avis.claimant = create :gestionnaire
end
end
end
end