Sha256: e0724f5c169b67a5d906da1217b83ce39830f3bb7e3e21d370f62168ce2a5aaf
Contents?: true
Size: 892 Bytes
Versions: 1
Compression:
Stored size: 892 Bytes
Contents
require 'spec_helper' describe WirecardSepa::Recurring::RecurringRequest do subject { described_class.new(params) } let(:params) do { merchant_account_id: 'eefc804c-f9d3-43a8-bd15-a1c92de10000', request_id: '55566dbf-c68c-4f4e-a14b-69db83fbd555', parent_transaction_id: 'e6604f91-663c-11e3-a07b-18037336c0b3', order_number: '12345', requested_amount: '20.02', } end describe '#initialize' do it 'raises an Error when unexpected param keys are provided' do expect { described_class.new({ unexpected_key: 'foo' }) }.to raise_error WirecardSepa::Errors::InvalidParamsError end end describe '#to_xml' do it 'builds the correct xml' do expected_xml = read_support_file('recurring/success/recurring_request.xml') expect(subject.to_xml).to eq expected_xml end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wirecard_sepa-0.1.7 | spec/lib/wirecard_sepa/recurring/recurring_request_spec.rb |