diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2020-01-06 02:52:31 -0700 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2020-01-06 02:52:31 -0700 |
| commit | 97e6efb77dc4936c7291caed2d88689b2ee26a24 (patch) | |
| tree | c72b21d326e842870a071fd1e3da6b3b01b59d28 /spec/cli_spec.rb | |
| parent | 9c16381a42b2acca9257d40fa9b77b23a1f8a5fc (diff) | |
use bundler when testing -r flag; add test for -r asciidoctor/pdf
Diffstat (limited to 'spec/cli_spec.rb')
| -rw-r--r-- | spec/cli_spec.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/spec/cli_spec.rb b/spec/cli_spec.rb index e62c590b..77539bfa 100644 --- a/spec/cli_spec.rb +++ b/spec/cli_spec.rb @@ -13,7 +13,15 @@ describe 'asciidoctor-pdf' do context 'Require' do it 'should load converter if backend is pdf and require is asciidoctor-pdf', cli: true do - out, err, res = run_command asciidoctor_bin, '-r', 'asciidoctor-pdf', '-b', 'pdf', '-D', output_dir, (fixture_file 'hello.adoc') + out, err, res = run_command asciidoctor_bin, '-r', 'asciidoctor-pdf', '-b', 'pdf', '-D', output_dir, (fixture_file 'hello.adoc'), use_bundler: true + (expect res.exitstatus).to be 0 + (expect out).to be_empty + (expect err).to be_empty + (expect Pathname.new output_file 'hello.pdf').to exist + end + + it 'should load converter if backend is pdf and require is asciidoctor/pdf', cli: true do + out, err, res = run_command asciidoctor_bin, '-r', 'asciidoctor/pdf', '-b', 'pdf', '-D', output_dir, (fixture_file 'hello.adoc'), use_bundler: true (expect res.exitstatus).to be 0 (expect out).to be_empty (expect err).to be_empty |
