Sha256: f8e3c519cc3d428691ccb11e980b6b6e84fd08946ac9e2452072a77f7a131d39

Contents?: true

Size: 464 Bytes

Versions: 30

Compression:

Stored size: 464 Bytes

Contents

describe Moneta::Api::Requests::PaymentRequest, vcr: true do
  include_context 'moneta'

  describe 'payment' do
    let(:request) do
      described_class.new.tap do |request|
        fill_base_settings.(request)
      end
    end

    let!(:response) { service.payment(request) }

    it 'should success' do
      expect(response.attribute.first).to be_kind_of(Moneta::Api::Types::KeyValueAttribute)
      expect(response.id).to be_a_moneta_id
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
moneta-api-2.1.0 spec/lib/moneta/api/requests/payment_request_spec.rb
moneta-api-2.0.0 spec/lib/moneta/api/requests/payment_request_spec.rb
moneta-api-2.0.0.rc2 spec/lib/moneta/api/requests/payment_request_spec.rb
moneta-api-2.0.0.rc1 spec/lib/moneta/api/requests/payment_request_spec.rb
moneta-api-1.13.0 spec/lib/moneta/api/requests/payment_request_spec.rb
moneta-api-1.12.8 spec/lib/moneta/api/requests/payment_request_spec.rb
moneta-api-1.12.7 spec/lib/moneta/api/requests/payment_request_spec.rb
moneta-api-1.12.6 spec/lib/moneta/api/requests/payment_request_spec.rb
moneta-api-1.12.5 spec/lib/moneta/api/requests/payment_request_spec.rb
moneta-api-1.12.4 spec/lib/moneta/api/requests/payment_request_spec.rb
moneta-api-1.12.3 spec/lib/moneta/api/requests/payment_request_spec.rb
moneta-api-1.12.2 spec/lib/moneta/api/requests/payment_request_spec.rb
moneta-api-1.12.1 spec/lib/moneta/api/requests/payment_request_spec.rb
moneta-api-1.12.0 spec/lib/moneta/api/requests/payment_request_spec.rb
moneta-api-1.11.0 spec/lib/moneta/api/requests/payment_request_spec.rb
moneta-api-1.10.0 spec/lib/moneta/api/requests/payment_request_spec.rb
moneta-api-1.9.0 spec/lib/moneta/api/requests/payment_request_spec.rb
moneta-api-1.8.0 spec/lib/moneta/api/requests/payment_request_spec.rb
moneta-api-1.7.0 spec/lib/moneta/api/requests/payment_request_spec.rb
moneta-api-1.6.0 spec/lib/moneta/api/requests/payment_request_spec.rb