diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2019-11-23 04:07:21 -0700 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2019-11-23 04:07:21 -0700 |
| commit | f199c60d9e2484abca38a883ce76ff67e721a4a8 (patch) | |
| tree | ae203cc83d8a00c59c036053d248e7d9741a9948 | |
| parent | f7fb755f16dfc672a2e7aa99c369f06cb37033d9 (diff) | |
verify that opts=inline is ignored for SVG image
| -rw-r--r-- | spec/image_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/image_spec.rb b/spec/image_spec.rb index 0971e129..c9b2b62c 100644 --- a/spec/image_spec.rb +++ b/spec/image_spec.rb @@ -348,6 +348,17 @@ describe 'Asciidoctor::PDF::Converter - Image' do (expect to_file).to visually_match 'image-svg-with-missing-image.pdf' end + + it 'should ignore inline option for SVG on image macro' do + pdf = to_pdf <<~'EOS', analyze: :rect + image::square.svg[pdfwidth=200pt,opts=inline] + EOS + (expect pdf.rectangles).to have_size 1 + rect = pdf.rectangles[0] + (expect rect[:point]).to eql [48.24, 605.89] + (expect rect[:width]).to eql 200.0 + (expect rect[:height]).to eql 200.0 + end end context 'PNG' do |
