From 08dfe7d13a87ba4608fdc267db46eba8ffb79dbe Mon Sep 17 00:00:00 2001 From: Pierre de La Morinerie Date: Thu, 27 Sep 2018 15:14:00 +0000 Subject: [PATCH] support: update link to messagerie --- app/controllers/support_controller.rb | 2 +- spec/controllers/support_controller_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/support_controller.rb b/app/controllers/support_controller.rb index 131f2b5fa..0b073a96f 100644 --- a/app/controllers/support_controller.rb +++ b/app/controllers/support_controller.rb @@ -9,7 +9,7 @@ class SupportController < ApplicationController if direct_message? && create_commentaire flash.notice = "Votre message a été envoyé sur la messagerie de votre dossier." - redirect_to helpers.url_for_dossier(dossier) + redirect_to messagerie_dossier_path(dossier) elsif create_conversation flash.notice = "Votre message a été envoyé." diff --git a/spec/controllers/support_controller_spec.rb b/spec/controllers/support_controller_spec.rb index f35a3e51c..a075e1b19 100644 --- a/spec/controllers/support_controller_spec.rb +++ b/spec/controllers/support_controller_spec.rb @@ -98,7 +98,7 @@ describe SupportController, type: :controller do } expect(flash[:notice]).to match('Votre message a été envoyé sur la messagerie de votre dossier.') - expect(response).to redirect_to users_dossier_recapitulatif_path(dossier) + expect(response).to redirect_to messagerie_dossier_path(dossier) end end end