Sha256: 5bccf5723228b00786edf9885c4ec7d285c249d559ae2baa99a21368284a9f44
Contents?: true
Size: 1.05 KB
Versions: 8
Compression:
Stored size: 1.05 KB
Contents
require 'spec_helper' describe PensioAPI::Reservation do before :each do stub_pensio_response('/merchant/API/payments', 'payments') stub_pensio_response('/merchant/API/captureReservation', 'capture_reservation') stub_pensio_response('/merchant/API/releaseReservation', 'release_reservation') stub_pensio_response('/merchant/API/reservationOfFixedAmount', 'reservation_of_fixed_amount') end let(:transaction) { PensioAPI::Transaction.find.first } describe '.capture' do let(:response) { transaction.to_reservation.capture } specify { expect(response).to be_an_instance_of(PensioAPI::Responses::ReservationCapture) } end describe '.release' do let(:response) { transaction.to_reservation.release } specify { expect(response).to be_an_instance_of(PensioAPI::Responses::ReservationRelease) } end describe '.of_fixed_amount' do let(:response) do PensioAPI::Reservation.of_fixed_amount(reservation_arguments) end specify { expect(response).to be_an_instance_of(PensioAPI::Responses::Reservation) } end end
Version data entries
8 entries across 8 versions & 1 rubygems