Sha256: 48f1cc8b6eb53ada1c27a32155089b219a70ba34fc9bc54ef6ec0e8e2bcc3aff
Contents?: true
Size: 1.49 KB
Versions: 5
Compression:
Stored size: 1.49 KB
Contents
require "spec_helper" RSpec.describe IsoDoc do it "test empty pdf_options" do convert = IsoDoc::XslfoPdfConvert.new( { datauriimage: false, }, ) expect(convert.pdf_options(nil)).to eq({}) end it "test empty pdf_options for nil font_manifest_file" do convert = IsoDoc::XslfoPdfConvert.new( { datauriimage: false, IsoDoc::XslfoPdfConvert::MN2PDF_OPTIONS => { IsoDoc::XslfoPdfConvert::MN2PDF_FONT_MANIFEST => nil, }, }, ) expect(convert.pdf_options(nil)).to eq({}) end it "test --font-manifest pdf_options" do mn2pdf_opts = { IsoDoc::XslfoPdfConvert::MN2PDF_FONT_MANIFEST => "/tmp/manifest.yml", } convert = IsoDoc::XslfoPdfConvert.new( { datauriimage: false, IsoDoc::XslfoPdfConvert::MN2PDF_OPTIONS => mn2pdf_opts, }, ) expect(convert.pdf_options(nil)).to eq(mn2pdf_opts) end it "test --param align-cross-elements pdf_options" do convert = IsoDoc::XslfoPdfConvert.new( { datauriimage: false, aligncrosselements: "clause table note", }, ) expect(convert.pdf_options(nil)) .to eq({ "--param align-cross-elements=" => "clause table note" }) end it "test --baseassetpath pdf_options" do convert = IsoDoc::XslfoPdfConvert.new( { datauriimage: false, baseassetpath: "ABC", }, ) expect(convert.pdf_options(nil)) .to eq({ "--param baseassetpath=" => "ABC" }) end end
Version data entries
5 entries across 5 versions & 1 rubygems