Sha256: 2c5b04adcdb61d2ace7be01495eab96738d0dfb81c95e3affab62da039486627
Contents?: true
Size: 584 Bytes
Versions: 28
Compression:
Stored size: 584 Bytes
Contents
require 'spec_helper' describe BrDanfe::DanfeLib::NfceLib::ProductList do let(:base_dir) { './spec/fixtures/nfce/lib/' } let(:output_pdf) { "#{base_dir}output.pdf" } let(:subject) { BrDanfe::DanfeLib::NfceLib::Document.new(8.cm, 1.8.cm) } before { File.delete(output_pdf) if File.exist?(output_pdf) } it 'render the document with blank lines' do expect(File.exist?(output_pdf)).to be_falsey 2.times { subject.render_blank_line } subject.render_file output_pdf expect("#{base_dir}document#render.pdf").to have_same_content_of file: output_pdf end end
Version data entries
28 entries across 28 versions & 1 rubygems