diff options
| author | Marat Radchenko <marat@slonopotamus.org> | 2020-02-18 20:46:41 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-18 20:46:41 +0300 |
| commit | cb77d520bfd163ee8a63e8158bccb6b237df85fe (patch) | |
| tree | 0ef0659100375ac6828a10d3ea171ff585ca3fde /spec/cli_spec.rb | |
| parent | b85e4497c5bd7dd25d38b85ec6c4755eddb7bdb1 (diff) | |
resolves #47 stop requiring specific include file scheme (PR #302)
support conversion of article documents to a single-chapter file
resolves #205 support special chapters like bibliography
resolves #190 `basedir` now points to spine document directory when processing chapter files
resolves #178 fix image and listing numbers being reset in each chapter
resolves #166 fix xref resolving between sub-includes of chapter files
resolves #151 add support for contentless include files
resolves #136 drop nonstandard `<<chapter#>>` xref syntax and instead support vanilla `<<anchor>>` or `<<file#anchor>>` syntax
resolves #206 properly include bibliography generated by asciidoctor-bibtex
require Asciidoctor 1.5.6+
Diffstat (limited to 'spec/cli_spec.rb')
| -rw-r--r-- | spec/cli_spec.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/cli_spec.rb b/spec/cli_spec.rb index 9c132b2..f3b39a2 100644 --- a/spec/cli_spec.rb +++ b/spec/cli_spec.rb @@ -21,11 +21,11 @@ describe 'asciidoctor-epub3' do _, err, res = run_command asciidoctor_epub3_bin, '--failure-level=ERROR', '-a', 'ebook-validate', - fixture_file('empty.adoc'), - '-o', temp_file('empty.epub') + fixture_file('invalid.adoc'), + '-o', temp_file('invalid.epub') expect(res.exitstatus).to eq(1) # Error from epubcheck - expect(err).to include 'ERROR(RSC-005)' + expect(err).to include 'ERROR(RSC-012)' end it 'converts sample book to epub and validates it' do @@ -51,16 +51,16 @@ describe 'asciidoctor-epub3' do end it 'prints errors to stderr when converts invalid book to epub' do - _, err, res = to_epub fixture_file('empty.adoc'), temp_file('empty.epub') + _, err, res = to_epub fixture_file('invalid.adoc'), temp_file('invalid.epub') expect(res.exitstatus).to eq(0) # Error from epubcheck - expect(err).to include 'ERROR(RSC-005)' - # Error from packager.rb + expect(err).to include 'ERROR(RSC-012)' + # Error from converter.rb expect(err).to include 'EPUB validation failed' end it 'prints errors to stderr when converts invalid book to mobi' do - _, err, res = to_mobi fixture_file('empty.adoc'), temp_file('empty.mobi') + _, err, res = to_mobi fixture_file('invalid.adoc'), temp_file('invalid.mobi') expect(err).to include 'ERROR' expect(res.exitstatus).to eq(0) end |
