DossierController: giving an advice does not remove the notifications

This commit is contained in:
Simon Lehericey 2017-05-24 17:55:00 +02:00
parent 3483ec075b
commit 34a7905828
2 changed files with 12 additions and 1 deletions

View file

@ -127,6 +127,13 @@ describe Backoffice::DossiersController, type: :controller do
it { expect(subject.status).to eq(200) }
it { expect(subject.body).to include("Votre avis est sollicité sur le dossier") }
it { expect(subject.body).to_not include("Invitez une personne externe à consulter le dossier et à vous donner un avis sur celui ci.") }
describe 'the notifications are not marked as read' do
it do
expect(Notification).not_to receive(:where)
subject
end
end
end
end