diff options
| author | Marat Radchenko <marat@slonopotamus.org> | 2020-08-17 11:24:17 +0300 |
|---|---|---|
| committer | Marat Radchenko <marat@slonopotamus.org> | 2020-08-17 11:24:46 +0300 |
| commit | 6b27daa88517d19fa7fc0d664e5c61cc0fdb0cea (patch) | |
| tree | 2749dc7b27695cb96ac1f95f224ee3634cf271c1 /spec | |
| parent | 8e5b6339a0332c77573423c79e454941352bc54e (diff) | |
resolves #360 fix crash when encountering unsupported Asciidoctor node
Broken by 87b135d61aa12d8706b9b00fcaca75d6bda36a88
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/converter_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/converter_spec.rb b/spec/converter_spec.rb index 82563ce..b6bb326 100644 --- a/spec/converter_spec.rb +++ b/spec/converter_spec.rb @@ -262,6 +262,14 @@ Text expect(toc.href).to eq('toc.xhtml') end + it "doesn't crash when sees inline toc" do + to_epub <<~EOS += Title + +toc::[] + EOS + end + it 'supports video' do book, = to_epub fixture_file('video/book.adoc') chapter = book.item_by_href '_chapter.xhtml' |
