Sha256: c1fcb708c819df4a18dbd61d341324f6c0830a84524c12001423f2bf22ed025f
Contents?: true
Size: 1005 Bytes
Versions: 7
Compression:
Stored size: 1005 Bytes
Contents
RSpec.describe Epics::CDZ 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') } context 'with date range' do subject { described_class.new(client, "2014-09-01", "2014-09-30") } describe '#to_xml' do specify { expect(subject.to_xml).to be_a_valid_ebics_doc } it 'does includes a date range as standard order parameter' do expect(subject.to_xml).to include('<StandardOrderParams><DateRange><Start>2014-09-01</Start><End>2014-09-30</End></DateRange></StandardOrderParams>') end end end context 'without date range' do subject { described_class.new(client) } describe '#to_xml' do specify { expect(subject.to_xml).to be_a_valid_ebics_doc } it 'does not include a standard order parameter' do expect(subject.to_xml).to include('<StandardOrderParams/>') end end end end
Version data entries
7 entries across 7 versions & 1 rubygems