ProcedureOverview: use procedure_url to link with absolute path in email

This commit is contained in:
Simon Lehericey 2017-05-30 15:03:51 +02:00
parent f783d9e6f0
commit ae8b126594
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