explicite revive meaning
This commit is contained in:
parent
689a51588f
commit
169b8c9b3e
1 changed files with 1 additions and 1 deletions
|
@ -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}")
|
||||||
|
|
Loading…
Reference in a new issue