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-1.5.0 spec/lib/moneta/api/requests/payment_request_spec.rb
moneta-api-1.4.0 spec/lib/moneta/api/requests/payment_request_spec.rb
moneta-api-1.3.0 spec/lib/moneta/api/requests/payment_request_spec.rb
moneta-api-1.2.1 spec/lib/moneta/api/requests/payment_request_spec.rb
moneta-api-1.2.0 spec/lib/moneta/api/requests/payment_request_spec.rb
moneta-api-1.1.0 spec/lib/moneta/api/requests/payment_request_spec.rb
moneta-api-1.0.4 spec/lib/moneta/api/requests/payment_request_spec.rb
moneta-api-1.0.3 spec/lib/moneta/api/requests/payment_request_spec.rb
moneta-api-1.0.2 spec/lib/moneta/api/requests/payment_request_spec.rb
moneta-api-1.0.1 spec/lib/moneta/api/requests/payment_request_spec.rb