templates: update link to dossier

This commit is contained in:
Pierre de La Morinerie 2018-09-27 16:36:12 +02:00
parent 40cf7ebdcb
commit 0526551e71
2 changed files with 2 additions and 2 deletions

View file

@ -47,7 +47,7 @@ module TagsSubstitutionConcern
{
libelle: 'lien dossier',
description: '',
lambda: -> (d) { external_link(users_dossier_recapitulatif_url(d)) },
lambda: -> (d) { external_link(dossier_url(d)) },
available_for_states: Dossier::SOUMIS
},
{

View file

@ -26,7 +26,7 @@ describe MailTemplateConcern do
it do
expected =
"[demarches-simplifiees.fr] #{dossier.id} #{dossier.procedure.libelle} " +
"<a target=\"_blank\" href=\"http://localhost:3000/users/dossiers/#{dossier.id}/recapitulatif\">http://localhost:3000/users/dossiers/#{dossier.id}/recapitulatif</a>"
"<a target=\"_blank\" href=\"http://localhost:3000/dossiers/#{dossier.id}\">http://localhost:3000/dossiers/#{dossier.id}</a>"
is_expected.to eq(expected)
end