explicite revive meaning

This commit is contained in:
Christophe Robillard 2020-07-21 10:51:53 +02:00
parent 689a51588f
commit 169b8c9b3e

View file

@ -291,7 +291,7 @@ describe Instructeurs::AvisController, type: :controller do
allow(AvisMailer).to receive(:avis_invitation).and_return(double(deliver_later: nil)) allow(AvisMailer).to receive(:avis_invitation).and_return(double(deliver_later: nil))
end end
it 'revive the expert' do it 'sends a reminder to the expert' do
get :revive, params: { procedure_id: procedure.id, id: avis.id } get :revive, params: { procedure_id: procedure.id, id: avis.id }
expect(AvisMailer).to have_received(:avis_invitation).once.with(avis) expect(AvisMailer).to have_received(:avis_invitation).once.with(avis)
expect(flash.notice).to eq("Un mail de relance a été envoyé à #{avis.email}") expect(flash.notice).to eq("Un mail de relance a été envoyé à #{avis.email}")