summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2022-10-25 02:04:24 -0600
committerDan Allen <dan.j.allen@gmail.com>2022-10-25 02:04:24 -0600
commit36db15edabc84641dfd55ecdc7ff0b4710685ac5 (patch)
treec7f896a0d44f918db33594ffff23379525d08c66
parent297bb9a0cebc333ba52a3bb336c0c9c8abb93aeb (diff)
deactivate source-highlighter on chronicles example in converter API tests
-rw-r--r--spec/converter_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/converter_spec.rb b/spec/converter_spec.rb
index a2ce88f3..cfb4d3e9 100644
--- a/spec/converter_spec.rb
+++ b/spec/converter_spec.rb
@@ -371,14 +371,14 @@ describe Asciidoctor::PDF::Converter do
it 'should not crash if theme does not specify any keys when converting chronicles example' do
input_path = Pathname.new example_file 'chronicles-example.adoc'
- pdf = to_pdf input_path, attribute_overrides: { 'imagesdir' => '@', 'pdf-theme' => (fixture_file 'bare-theme.yml') }
+ pdf = to_pdf input_path, attribute_overrides: { 'imagesdir' => '@', 'pdf-theme' => (fixture_file 'bare-theme.yml'), 'source-highlighter' => nil }
(expect pdf.pages).to have_size 14
(expect (pdf.page 1).text).to include 'Documentation Chronicles'
end
it 'should not warn when using dark theme to convert chronicles example' do
input_path = Pathname.new example_file 'chronicles-example.adoc'
- pdf = to_pdf input_path, attribute_overrides: { 'imagesdir' => '@', 'pdf-theme' => 'chronicles-dark' }, analyze: true
+ pdf = to_pdf input_path, attribute_overrides: { 'imagesdir' => '@', 'pdf-theme' => 'chronicles-dark', 'source-highlighter' => nil }, analyze: true
(expect pdf.pages).to have_size 17
gs_p1 = pdf.pages[0][:raw_content]
(expect gs_p1).to start_with %(q\n/DeviceRGB cs\n0.0 0.0 0.0 scn\n0.0 0.0 595.28 841.89 re\n)