Sha256: 3a78eed8bf6cee4ad18585aa9bdb3bbe87145795ad8667b30e3722b74b3aef76
Contents?: true
Size: 1.23 KB
Versions: 1
Compression:
Stored size: 1.23 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 convert = IsoDoc::XslfoPdfConvert.new( { datauriimage: false, IsoDoc::XslfoPdfConvert::MN2PDF_OPTIONS => { IsoDoc::XslfoPdfConvert::MN2PDF_FONT_MANIFEST => "/tmp/manifest.yml", }, }, ) expect(convert.pdf_options(nil)).to eq(" --font-manifest /tmp/manifest.yml") 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 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
isodoc-1.7.7 | spec/isodoc/xslfo_convert_spec.rb |