instructeur can delete a dossier UI
This commit is contained in:
parent
00b5ad7a10
commit
d2f3bb18f9
2 changed files with 2 additions and 2 deletions
|
@ -276,7 +276,7 @@ module Users
|
|||
private
|
||||
|
||||
def statut
|
||||
@statut = params[:statut].blank? ? 'mes-dossiers' : params[:statut]
|
||||
@statut = params[:statut].presence || 'mes-dossiers'
|
||||
end
|
||||
|
||||
def store_user_location!
|
||||
|
|
|
@ -751,7 +751,7 @@ describe Instructeurs::DossiersController, type: :controller do
|
|||
end
|
||||
|
||||
it 'send an email to the user' do
|
||||
expect(DossierMailer).to have_received(:notify_instructeur_deletion_to_user).with(DeletedDossier.find(dossier.id), dossier.user.email)
|
||||
expect(DossierMailer).to have_received(:notify_instructeur_deletion_to_user).with(DeletedDossier.where(dossier_id: dossier.id).first, dossier.user.email)
|
||||
end
|
||||
|
||||
it 'add a record into deleted_dossiers table' do
|
||||
|
|
Loading…
Reference in a new issue