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