smaller font-size for large footers in attestation
This commit is contained in:
parent
8bc1369c2c
commit
67b8bf4754
2 changed files with 22 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue