Merge pull request #373 from sgmap/Fix_absolute_link_in_weekly_notif

ProcedureOverview: use procedure_url to link with absolute path in email
This commit is contained in:
gregoirenovel 2017-05-30 15:24:29 +02:00 committed by GitHub
commit cdb6240ca8
2 changed files with 2 additions and 2 deletions

View file

@ -4,7 +4,7 @@ class ProcedureOverview
def initialize(procedure, start_date, notifications_count)
@libelle = procedure.libelle
@procedure_url = backoffice_dossiers_procedure_path(procedure)
@procedure_url = backoffice_dossiers_procedure_url(procedure)
@notifications_count = notifications_count
@received_dossiers_count = procedure.dossiers.where(state: :received).count

View file

@ -51,7 +51,7 @@ describe ProcedureOverview, type: :model do
subject { procedure_overview.to_html }
context 'when the different count are equal to 0' do
it { is_expected.to match(/^<a href='.+'><strong>libelle<\/strong><\/a>$/) }
it { is_expected.to match(/^<a href='http:\/\/.+'><strong>libelle<\/strong><\/a>$/) }
end
context 'when the different counts are equal to 1' do