Sha256: 3187c8204ed620e59688c90574436bd432bdcd55c4c8b2cffed657485be74f47
Contents?: true
Size: 673 Bytes
Versions: 2
Compression:
Stored size: 673 Bytes
Contents
require 'spec_helper' describe BrDanfe::Danfe do let(:xml) do <<-eos <nfeProc> <NFe> <infNFe> <ide> <mod>#{mod}</mod> </ide> </infNFe> </NFe> </nfeProc> eos end subject { described_class.new(xml) } context 'when the xml document type is NF-e' do let(:mod) { 55 } it 'returns a NF-e danfe class' do expect(subject.class).to eq BrDanfe::DanfeLib::Nfe end end context 'when the xml document type is NFC-e' do let(:mod) { 65 } it 'returns a NFC-e danfe class' do expect(subject.class).to eq BrDanfe::DanfeLib::Nfce end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
br_danfe-0.13.1 | spec/br_danfe/danfe_spec.rb |
br_danfe-0.13.0 | spec/br_danfe/danfe_spec.rb |