Sha256: 507033545d83ae6d27f68b2160a3eb589e5c7a894556ad449121ec35e7c9cec2
Contents?: true
Size: 574 Bytes
Versions: 2
Compression:
Stored size: 574 Bytes
Contents
require 'spec_helper' describe BrDanfe::DanfeNfceLib::ProductList do let(:base_dir) { './spec/fixtures/nfce/lib/' } let(:output_pdf) { "#{base_dir}output.pdf" } let(:subject) { BrDanfe::DanfeNfceLib::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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
br_danfe-0.12.1 | spec/lib/danfe_nfce_lib/document_spec.rb |
br_danfe-0.12.0 | spec/lib/danfe_nfce_lib/document_spec.rb |