Sha256: b68b97a4d57d90e7262b39d08532de71ad5bb74682554ab23e02b2c11f2a4ae4

Contents?: true

Size: 867 Bytes

Versions: 4

Compression:

Stored size: 867 Bytes

Contents

require 'spec_helper'

describe PensioAPI::Ecommerce do
  before :each do
    stub_pensio_response('/merchant/API/createPaymentRequest', 'create_payment_request')
    stub_pensio_response('/merchant/API/createMultiPaymentRequest', 'create_multi_payment_request')
  end

  describe '.create_payment_request' do
    let(:response) { PensioAPI::Ecommerce.create_payment_request(reservation_arguments) }
    it 'returns an instance of PensioAPI::Responses::GatewayURL' do
      expect(response).to be_an_instance_of(PensioAPI::Responses::GatewayURL)
    end
  end

  describe '.create_multi_payment_request' do
    let(:response) { PensioAPI::Ecommerce.create_multi_payment_request(reservation_arguments) }
    it 'returns an instance of PensioAPI::Responses::GatewayURL' do
      expect(response).to be_an_instance_of(PensioAPI::Responses::GatewayURL)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pensio_api-0.3.1 spec/lib/pensio_api/ecommerce_spec.rb
pensio_api-0.3.0 spec/lib/pensio_api/ecommerce_spec.rb
pensio_api-0.2.3 spec/lib/pensio_api/ecommerce_spec.rb
pensio_api-0.2.2 spec/lib/pensio_api/ecommerce_spec.rb