diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2020-03-14 02:34:27 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-14 02:34:27 -0600 |
| commit | d662e57f217fac18a0c093abf2f18d0d6650e7f6 (patch) | |
| tree | 087714baf474d9673a52d0ddce21a31e60d99e9a /spec/section_spec.rb | |
| parent | d01e8a00e34630f8ad56ef67c82d1880e0580eea (diff) | |
resolves #1604 configure headings to inherit font style from theme (PR #1606)
Diffstat (limited to 'spec/section_spec.rb')
| -rw-r--r-- | spec/section_spec.rb | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/spec/section_spec.rb b/spec/section_spec.rb index 26987bd8..39938a3e 100644 --- a/spec/section_spec.rb +++ b/spec/section_spec.rb @@ -49,19 +49,15 @@ describe 'Asciidoctor::PDF::Converter - Section' do (expect pdf.text.map {|it| it.values_at :string, :font_name }).to eql expected_text end - it 'should not apply bold to italic text if headings are bold in theme' do - pdf_theme = { - heading_font_style: 'bold', - } - - pdf = to_pdf <<~'EOS', pdf_theme: pdf_theme, analyze: true + it 'should add text formatting styles to styles defined in theme' do + pdf = to_pdf <<~'EOS', pdf_theme: { heading_font_style: 'bold' }, analyze: true == Get Started _Quickly_ EOS text = pdf.text (expect text).to have_size 2 (expect text[0][:font_name]).to eql 'NotoSerif-Bold' - (expect text[1][:font_name]).to eql 'NotoSerif-Italic' + (expect text[1][:font_name]).to eql 'NotoSerif-BoldItalic' end it 'should not partition section title by default' do |
