Sha256: b0fd9af45519e1d5e2862b280f05963af876813693e738fbf20b733313d88a3e

Contents?: true

Size: 527 Bytes

Versions: 2

Compression:

Stored size: 527 Bytes

Contents

require 'spec_helper'

describe BrDanfe::MdfeLib::Document do
  let(:base_dir) { './spec/fixtures/mdfe/lib/' }
  let(:output_pdf) { "#{base_dir}output.pdf" }

  describe '#method_missing' do
    context 'when prawn has the method' do
      it 'does not throws an error' do
        expect { subject.text }.not_to raise_error NameError
      end
    end

    context 'when prawn does not have the method' do
      it 'throws an error' do
        expect { subject.any_method }.to raise_error NameError
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
br_danfe-0.17.0 spec/br_danfe/mdfe_lib/document_spec.rb
br_danfe-0.16.0 spec/br_danfe/mdfe_lib/document_spec.rb