Gestionnaire: move messagerie_avis_path to messagerie_gestionnaire_avis_path
This commit is contained in:
parent
c58b32a26d
commit
3b3849e4f3
3 changed files with 4 additions and 4 deletions
|
@ -46,7 +46,7 @@ module NewGestionnaire
|
|||
|
||||
if @commentaire.save
|
||||
flash.notice = "Message envoyé"
|
||||
redirect_to messagerie_avis_path(avis)
|
||||
redirect_to messagerie_gestionnaire_avis_path(avis)
|
||||
else
|
||||
flash.alert = @commentaire.errors.full_messages
|
||||
render :messagerie
|
||||
|
|
|
@ -11,5 +11,5 @@
|
|||
= link_to 'Avis', instruction_gestionnaire_avis_path(avis)
|
||||
- if avis.answer == nil
|
||||
%span.notifications{ 'aria-label': 'notifications' }
|
||||
%li{ class: current_page?(messagerie_avis_path(avis)) ? 'active' : nil }
|
||||
= link_to 'Messagerie', messagerie_avis_path(avis)
|
||||
%li{ class: current_page?(messagerie_gestionnaire_avis_path(avis)) ? 'active' : nil }
|
||||
= link_to 'Messagerie', messagerie_gestionnaire_avis_path(avis)
|
||||
|
|
|
@ -76,7 +76,7 @@ describe NewGestionnaire::AvisController, type: :controller do
|
|||
it do
|
||||
subject
|
||||
|
||||
expect(response).to redirect_to(messagerie_avis_path(avis_without_answer))
|
||||
expect(response).to redirect_to(messagerie_gestionnaire_avis_path(avis_without_answer))
|
||||
expect(dossier.commentaires.map(&:body)).to match(['commentaire body'])
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue