refactor messagerie_instructeur_avis_url

This commit is contained in:
Christophe Robillard 2020-04-20 15:05:36 +02:00
parent 83fba55b29
commit b0cfb2c02a
3 changed files with 3 additions and 3 deletions

View file

@ -105,7 +105,7 @@ describe Instructeurs::AvisController, type: :controller do
it do
subject
expect(response).to redirect_to(messagerie_instructeur_avis_path(avis_without_answer))
expect(response).to redirect_to(messagerie_instructeur_avis_path(avis_without_answer.procedure, avis_without_answer))
expect(dossier.commentaires.map(&:body)).to match(['commentaire body'])
end