Sha256: 228672f92fba3352670d7861daefe0950cde29d6d473e5ff5ea54a3cb9e0a68c

Contents?: true

Size: 542 Bytes

Versions: 6

Compression:

Stored size: 542 Bytes

Contents

$:.unshift File.join(File.dirname(__FILE__), "..", "lib")
require 'pdf/merger'

describe PDF::Merger do
  before(:each) do
    @pdf = PDF::Merger.new
    @pdf.add_file :text_field01, "test_template.pdf"
    @pdf.add_file :text_field02, "test_template.pdf"
  end

  it "should create PDF document" do
    @pdf.to_s.should_not be_nil
  end

  it "should save PDF document" do
    @pdf.save_as "test_output.pdf"
    File.exist?("test_output.pdf").should be_true
    File.delete("test_output.pdf") # Comment this out to view the output
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
pdf-merger-0.3.2 spec/pdf_merger_spec.rb
pdf-merger-0.3.1 spec/pdf_merger_spec.rb
pdf-merger-0.3.0 spec/pdf_merger_spec.rb
pdf-merger-0.2.0 spec/pdf_merger_spec.rb
pdf-merger-0.1.2 spec/pdf_merger_spec.rb
pdf-merger-0.1.1 spec/pdf_merger_spec.rb