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:
parent
5629d99a4a
commit
a9769ae277
1 changed files with 7 additions and 0 deletions
|
@ -509,6 +509,13 @@ describe Instructeurs::DossiersController, type: :controller do
|
||||||
end
|
end
|
||||||
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
|
context 'email sending' do
|
||||||
before do
|
before do
|
||||||
subject
|
subject
|
||||||
|
|
Loading…
Add table
Reference in a new issue