ProcedureOverview: use procedure_url to link with absolute path in email
This commit is contained in:
parent
f783d9e6f0
commit
ae8b126594
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue