From cb77d520bfd163ee8a63e8158bccb6b237df85fe Mon Sep 17 00:00:00 2001 From: Marat Radchenko Date: Tue, 18 Feb 2020 20:46:41 +0300 Subject: 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 `<>` xref syntax and instead support vanilla `<>` or `<>` syntax resolves #206 properly include bibliography generated by asciidoctor-bibtex require Asciidoctor 1.5.6+ --- spec/cli_spec.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'spec/cli_spec.rb') 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 -- cgit v1.2.3