update notifications_for_dossier used in dossier show

This commit is contained in:
simon lehericey 2021-10-04 10:07:04 +02:00
parent 65911b7680
commit 1000417bc9
2 changed files with 10 additions and 2 deletions

View file

@ -221,6 +221,12 @@ describe Instructeur, type: :model do
it { is_expected.to match({ demande: true, annotations_privees: false, avis: false, messagerie: false }) }
end
context 'when there is a modification on identity' do
before { dossier.update(identity_updated_at: Time.zone.now) }
it { is_expected.to match({ demande: true, annotations_privees: false, avis: false, messagerie: false }) }
end
context 'when there is a modification on groupe instructeur' do
let(:groupe_instructeur) { create(:groupe_instructeur, instructeurs: [instructeur], procedure: dossier.procedure) }
before { dossier.assign_to_groupe_instructeur(groupe_instructeur) }