Sha256: f485f18ea0ed28f73bd493d16640174f4ec1914f89d2322ef8c7d329918c2950

Contents?: true

Size: 315 Bytes

Versions: 3

Compression:

Stored size: 315 Bytes

Contents

require 'spec_helper'

describe Prawn::Document do
  describe 'When creating destinations' do
    let(:pdf) { create_pdf }

    it 'adds entry to Dests name tree' do
      expect(pdf.dests.data.empty?).to eq(true)
      pdf.add_dest 'candy', 'chocolate'
      expect(pdf.dests.data.size).to eq(1)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
prawn-2.2.2 spec/prawn/document_destinations_spec.rb
prawn-2.2.1 spec/prawn/document_destinations_spec.rb
prawn-2.2.0 spec/prawn/document_destinations_spec.rb