asciidoctor-pdf: test suite failures when building RPM

Hello, sorry for ruby newbie question but I see a few failures when running rspec and comparing results with the expected floats.

Obviously this must be something related to local setup but just wondered any pointers?

  4) Asciidoctor::PDF::Converter - Cover Page should not allow page size of PDF cover page to affect page size of document
     Failure/Error: (expect pdf.pages[0][:size]).to eql PDF::Core::PageGeometry::SIZES['LETTER']
       expected: [612.0, 792.0]
            got: [612, 792]
       (compared using eql?)
     # ./spec/cover_page_spec.rb:181:in `block (2 levels) in <top (required)>'
  5) Asciidoctor::PDF::Converter - Font font sizes should resolve font size of inline element specified in rem
     Failure/Error: (expect linked_text[:font_size]).to eql 9.0
       expected: 9.0
            got: 9
       (compared using eql?)
     # ./spec/font_spec.rb:224:in `block (3 levels) in <top (required)>'
  6) Asciidoctor::PDF::Converter - Image SVG should replace unrecognized font family with base font family
     Failure/Error: (expect text[0][:font_size]).to eql 12.0
       expected: 12.0
            got: 12
       (compared using eql?)
     # ./spec/image_spec.rb:187:in `block (3 levels) in <top (required)>'
  7) Asciidoctor::PDF::Converter - Image SVG should replace unrecognized font family in SVG with SVG fallback font family if specified in theme
     Failure/Error: (expect text[0][:font_size]).to eql 12.0
       expected: 12.0
            got: 12
       (compared using eql?)

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 53 (45 by maintainers)

Commits related to this issue

Most upvoted comments

That is fantastic news! Thanks for your work on this @snecklifter. And thanks for the assistance @voxik.

I now have master working with pdf-core 0.8.1. I’ll port those updates into the PR for the 1.5.x branch tomorrow.