require File.expand_path(File.dirname(__FILE__) + "/../spec_helper") describe 'FormCollection' do it 'should be initialized without errors' do opts = {:data => [{:full_name => 'Wes Hays'}, {:full_name => 'Darren Johnson'}], :template => File.expand_path(File.dirname(__FILE__) + '/../templates/certificate_template.pdf'), :dir => File.expand_path(File.dirname(__FILE__) + '/../output/'), :file_name => 'people.pdf'} ff = PdfFiller(opts) File.exist?([opts[:dir], opts[:file_name]].join('/')).should be_true end end