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

Version Path
br_danfe-1.2.1 spec/br_danfe/danfe_lib/nfce_lib/document_spec.rb
br_danfe-1.2.0 spec/br_danfe/danfe_lib/nfce_lib/document_spec.rb
br_danfe-1.1.0 spec/br_danfe/danfe_lib/nfce_lib/document_spec.rb
br_danfe-1.0.0 spec/br_danfe/danfe_lib/nfce_lib/document_spec.rb
br_danfe-0.20.0 spec/br_danfe/danfe_lib/nfce_lib/document_spec.rb
br_danfe-0.19.0 spec/br_danfe/danfe_lib/nfce_lib/document_spec.rb
br_danfe-0.18.0 spec/br_danfe/danfe_lib/nfce_lib/document_spec.rb
br_danfe-0.17.8 spec/br_danfe/danfe_lib/nfce_lib/document_spec.rb
br_danfe-0.17.7 spec/br_danfe/danfe_lib/nfce_lib/document_spec.rb
br_danfe-0.17.6 spec/br_danfe/danfe_lib/nfce_lib/document_spec.rb
br_danfe-0.17.5 spec/br_danfe/danfe_lib/nfce_lib/document_spec.rb
br_danfe-0.17.4 spec/br_danfe/danfe_lib/nfce_lib/document_spec.rb
br_danfe-0.17.3 spec/br_danfe/danfe_lib/nfce_lib/document_spec.rb
br_danfe-0.17.2 spec/br_danfe/danfe_lib/nfce_lib/document_spec.rb
br_danfe-0.17.1 spec/br_danfe/danfe_lib/nfce_lib/document_spec.rb
br_danfe-0.17.0 spec/br_danfe/danfe_lib/nfce_lib/document_spec.rb
br_danfe-0.16.0 spec/br_danfe/danfe_lib/nfce_lib/document_spec.rb
br_danfe-0.15.1 spec/br_danfe/danfe_lib/nfce_lib/document_spec.rb
br_danfe-0.15.0 spec/br_danfe/danfe_lib/nfce_lib/document_spec.rb
br_danfe-0.14.5 spec/br_danfe/danfe_lib/nfce_lib/document_spec.rb