Sha256: 5caf7521afcf451ca7d8240e73209e9d50d02dcda55c9f4b0c15ca6d08e1f4c3
Contents?: true
Size: 718 Bytes
Versions: 8
Compression:
Stored size: 718 Bytes
Contents
# encoding: utf-8 require File.join(File.expand_path(File.dirname(__FILE__)), "spec_helper") describe "A Reference object" do describe "generated via Prawn::Document" do it "should return a proper reference on ref!" do pdf = Prawn::Document.new pdf.ref!({}).is_a?(PDF::Core::Reference).should == true end it "should return an identifier on ref" do pdf = Prawn::Document.new r = pdf.ref({}) r.is_a?(Integer).should == true end it "should have :Length of stream if it has one when compression disabled" do pdf = Prawn::Document.new :compress => false ref = pdf.ref!({}) ref << 'Hello' ref.stream.data[:Length].should == 5 end end end
Version data entries
8 entries across 8 versions & 2 rubygems