Sha256: 59830537a90b68c069623a9b6f29e2bed793b5c26b2be53bcfb8197b876d54b3
Contents?: true
Size: 841 Bytes
Versions: 2
Compression:
Stored size: 841 Bytes
Contents
require_relative "spec_helper" describe "PDF Document State" do before { @state = PDF::Core::DocumentState.new({}) } describe "initialization" do it { expect(@state.compress).to eq(false) } it { expect(@state.encrypt).to eq(false) } it { expect(@state.skip_encoding).to eq(false) } it { expect(@state.trailer).to eq({}) } end describe "normalize_metadata" do it { expect(@state.store.info.data[:Creator]).to eq("Prawn") } it { expect(@state.store.info.data[:Producer]).to eq("Prawn") } end describe "given a trailer ID with two values" do before do @state = PDF::Core::DocumentState.new({ trailer: { :ID => ["myDoc","versionA"] } }) end it "should contain the ID entry with two values in trailer" do expect(@state.trailer[:ID].count).to eq(2) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pdf-core-0.6.1 | spec/document_state_spec.rb |
pdf-core-0.6.0 | spec/document_state_spec.rb |