diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2020-04-07 01:10:05 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2020-04-07 01:10:05 -0600 |
| commit | b5b23a4ada90c1471d6ead44ba5478c0b6748429 (patch) | |
| tree | 6aec189b60148995c0bc879b5b5655640ac03024 /spec/dest_spec.rb | |
| parent | 5adaebcec25ba10e214b236e460321638953be14 (diff) | |
add test for callout list ID
Diffstat (limited to 'spec/dest_spec.rb')
| -rw-r--r-- | spec/dest_spec.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/dest_spec.rb b/spec/dest_spec.rb index 2f6c9513..149ea7e6 100644 --- a/spec/dest_spec.rb +++ b/spec/dest_spec.rb @@ -62,6 +62,21 @@ describe 'Asciidoctor::PDF::Converter - Dest' do (expect get_names pdf).to have_key 'takeaways' end + it 'should register dest for callout list that has an ID' do + pdf = to_pdf <<~'EOS' + ---- + require 'asciidoctor-pdf' // <1> + + Asciidoctor.convert_file 'doc.adoc', backend: 'pdf', safe: :safe // <2> + ---- + [#details] + <1> requires the library + <2> converts the document to PDF + EOS + + (expect get_names pdf).to have_key 'details' + end + it 'should register dest for each section with implicit ID' do pdf = to_pdf <<~'EOS' == Fee |
