smaller font-size for large footers in attestation

This commit is contained in:
clemkeirua 2020-09-25 15:19:59 +02:00
parent 8bc1369c2c
commit 67b8bf4754
2 changed files with 22 additions and 1 deletions

View file

@ -66,6 +66,22 @@ describe NewAdministrateur::AttestationTemplatesController, type: :controller do
it { expect(assigns(:attestation)[:signature]).to eq(nil) }
it_behaves_like 'rendering a PDF successfully'
end
context 'with empty footer' do
let!(:attestation_template) do
create(:attestation_template, { title: 't', body: 'b', footer: nil })
end
it_behaves_like 'rendering a PDF successfully'
end
context 'with large footer' do
let!(:attestation_params) do
create(:attestation_template, { title: 't', body: 'b', footer: ' ' * 190 })
end
it_behaves_like 'rendering a PDF successfully'
end
end
end