Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (18 sloc) 659 Bytes
# encoding: utf-8
puts "Prawn specs: Running on Ruby Version: #{RUBY_VERSION}"
require "rubygems"
require "test/spec"
require "mocha"
$LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'lib')
$LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'vendor','pdf-inspector','lib')
require "prawn"
Prawn.debug = true
gem 'pdf-reader', ">=0.7.3"
require "pdf/reader"
require "pdf/inspector"
def create_pdf(klass=Prawn::Document)
@pdf = klass.new(:left_margin => 0,
:right_margin => 0,
:top_margin => 0,
:bottom_margin => 0)
end