Sha256: 2c6d30e10a2729bacdcdb1a1aaf54ccdb27776d408a88a1d89dd6660ef48b301
Contents?: true
Size: 670 Bytes
Versions: 6
Compression:
Stored size: 670 Bytes
Contents
require 'spec_helper' describe PensioAPI::Responses::Refund do before :each do stub_pensio_response('/merchant/API/payments', 'payments') stub_pensio_response('/merchant/API/refundCapturedReservation', 'refund_captured_reservation') end let(:response) { PensioAPI::Transaction.find.first.refund } specify { expect(response).to be_an_instance_of(PensioAPI::Responses::Refund) } describe 'readable attributes' do specify { expect(response.transaction).to be_an_instance_of(PensioAPI::Transaction) } specify { expect(response.refund_amount).to eq(BigDecimal.new('0.12')) } specify { expect(response.refund_currency).to eq(978) } end end
Version data entries
6 entries across 6 versions & 1 rubygems