Sha256: 96cc88678c5af912a52c7d7b2ad9c5dc6a0baf78755c44723f54f69048786d51
Contents?: true
Size: 697 Bytes
Versions: 6
Compression:
Stored size: 697 Bytes
Contents
require 'spec_helper' describe PensioAPI::Responses::ReservationCapture do before :each do stub_pensio_response('/merchant/API/payments', 'payments') stub_pensio_response('/merchant/API/captureReservation', 'capture_reservation') end let(:response) { PensioAPI::Transaction.find.first.to_reservation.capture } specify { expect(response).to be_an_instance_of(PensioAPI::Responses::ReservationCapture) } describe 'readable attributes' do specify { expect(response.transaction).to be_an_instance_of(PensioAPI::Transaction) } specify { expect(response.capture_amount).to eq(BigDecimal.new('0.20')) } specify { expect(response.capture_currency).to eq(978) } end end
Version data entries
6 entries across 6 versions & 1 rubygems