Attestation_template: use etablissement inline_adresse
This commit is contained in:
parent
d69d0f8a78
commit
84e3d8fbe0
2 changed files with 2 additions and 2 deletions
|
@ -75,7 +75,7 @@ class AttestationTemplate < ApplicationRecord
|
||||||
end
|
end
|
||||||
|
|
||||||
def etablissement_tags
|
def etablissement_tags
|
||||||
[{ libelle: 'adresse', description: '', target: 'adresse' }]
|
[{ libelle: 'adresse', description: '', target: 'inline_adresse' }]
|
||||||
end
|
end
|
||||||
|
|
||||||
def build_pdf(dossier)
|
def build_pdf(dossier)
|
||||||
|
|
|
@ -159,7 +159,7 @@ describe AttestationTemplate, type: :model do
|
||||||
let(:etablissement) { create(:etablissement, adresse: 'adresse') }
|
let(:etablissement) { create(:etablissement, adresse: 'adresse') }
|
||||||
let(:template_title) { '--adresse--' }
|
let(:template_title) { '--adresse--' }
|
||||||
|
|
||||||
it { expect(view_args[:title]).to eq('adresse') }
|
it { expect(view_args[:title]).to eq(etablissement.inline_adresse) }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue