fix(instructeur/dossiers#create_avis): as an instructeur, when I ask an avis, i hope to be notified when the expert give his avis

This commit is contained in:
Martin 2022-04-06 15:01:07 +02:00 committed by mfo
parent 5629d99a4a
commit a9769ae277

View file

@ -509,6 +509,13 @@ describe Instructeurs::DossiersController, type: :controller do
end
end
context 'as an instructeur, i auto follow the dossier so I get the notifications' do
it 'works' do
subject
expect(instructeur.follows.where(dossier: dossier).count).to eq(1)
end
end
context 'email sending' do
before do
subject