Sha256: 1fba2596188120a710a7d359e59c5d1e1e2bb469c8018c942c6449a79333ed0e
Contents?: true
Size: 564 Bytes
Versions: 3
Compression:
Stored size: 564 Bytes
Contents
require File.dirname(__FILE__) + '/../integration_helper' describe 'a PDF with a text field' do let(:input_pdf) { File.join(File.dirname(__FILE__), "pdf") } context 'filled with foo' do let(:template) { PDFRavager::Template.new do |t| t.text 'text_field', 'foo' end } let(:expected) { File.join(File.dirname(__FILE__), "expected.png") } it 'matches expected.png when rendered' do pix_diff, _ = compare_pdf_to_png(ravage_to_temp_file(template, input_pdf), expected) expect(pix_diff).to eq(0) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pdf_ravager-0.2.2 | spec/integration/text_field/spec.rb |
pdf_ravager-0.2.1 | spec/integration/text_field/spec.rb |
pdf_ravager-0.2.0 | spec/integration/text_field/spec.rb |