Sha256: 4de887961344e3028185a5fc4af34237e859b623d16b96b3bdb9b48a3846c6c6
Contents?: true
Size: 610 Bytes
Versions: 1
Compression:
Stored size: 610 Bytes
Contents
require File.dirname(__FILE__) + '/../integration_helper' describe 'a PDF with a multiline text field' do describe 'filled with FOO' do before(:each) do p = pdf do text 'multilinetext', 'FOO' * 10000 end pdf_file = File.join(File.dirname(__FILE__), "pdf") @pdf_file = "#{mktemp}.pdf" @pdf = p.ravage pdf_file, :out_file => @pdf_file end it 'should match expected.png when rendered' do png = pdf_to_png(@pdf_file) pix_diff, pct_diff = png_diff(png, File.join(File.dirname(__FILE__), "expected.png")) pix_diff.should == 0 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pdf_ravager-0.0.8 | spec/integration/multiline_text_field/spec.rb |