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