Sha256: e1ea2eb81547a09b0bd32dfaaea6875eb7eb6d450e412eeb63b44069cf132ffd
Contents?: true
Size: 873 Bytes
Versions: 5
Compression:
Stored size: 873 Bytes
Contents
RSpec.describe Epics::C2S do let(:client) { Epics::Client.new( File.open(File.join( File.dirname(__FILE__), '..', 'fixtures', 'SIZBN001.key')), 'secret' , 'https://194.180.18.30/ebicsweb/ebicsweb', 'SIZBN001', 'EBIX', 'EBICS') } let(:document) { File.read( File.join( File.dirname(__FILE__), '..', 'fixtures', 'xml', 'cdb.xml') ) } subject { described_class.new(client, document) } describe 'order attributes' do it { expect(subject.header.to_s).to include('<OrderAttribute>DZHNN</OrderAttribute>') } it { expect(subject.header.to_s).to include('<OrderType>C2S</OrderType>') } end describe '#to_xml' do specify { expect(subject.to_xml).to be_a_valid_ebics_doc } end describe '#to_transfer_xml' do before { subject.transaction_id = SecureRandom.hex(16) } specify { expect(subject.to_transfer_xml).to be_a_valid_ebics_doc } end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
epics-2.6.0 | spec/orders/c2s_spec.rb |
epics-2.5.0 | spec/orders/c2s_spec.rb |
epics-2.4.0 | spec/orders/c2s_spec.rb |
epics-2.3.0 | spec/orders/c2s_spec.rb |
epics-2.2.0 | spec/orders/c2s_spec.rb |