Sha256: 9632c87af956c10f361ab9daaef8e52fbee8edb29db1f0f136d32f84432ac280

Contents?: true

Size: 500 Bytes

Versions: 2

Compression:

Stored size: 500 Bytes

Contents

require 'spec_helper'

describe PensioAPI::Responses::Reservation do
  before :each do
    stub_pensio_response('/merchant/API/reservationOfFixedAmount', 'reservation_of_fixed_amount')
  end

  let(:response) { PensioAPI::Reservation.of_fixed_amount(reservation_arguments) }

  specify { expect(response).to be_an_instance_of(PensioAPI::Responses::Reservation) }

  describe 'readable attributes' do
    specify { expect(response.transaction).to be_an_instance_of(PensioAPI::Transaction) }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pensio_api-0.2.3 spec/lib/pensio_api/responses/reservation_spec.rb
pensio_api-0.2.2 spec/lib/pensio_api/responses/reservation_spec.rb