Sha256: db6cf17d505e0e522142332abe69d99d0a56f95440b79b3f816154bedb1f3e6c

Contents?: true

Size: 677 Bytes

Versions: 4

Compression:

Stored size: 677 Bytes

Contents

RSpec.describe Epics::XE3 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', 'swiss_direct_debit.xml') ) }
  subject { described_class.new(client, document) }

  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

4 entries across 4 versions & 1 rubygems

Version Path
epics-2.7.0 spec/orders/xe3_spec.rb
epics-2.6.0 spec/orders/xe3_spec.rb
epics-2.5.0 spec/orders/xe3_spec.rb
epics-2.4.0 spec/orders/xe3_spec.rb