Sha256: 3ef2c17524998ca95c21b6027c168e8cfc8405911632e55ba99d3d36be045774

Contents?: true

Size: 611 Bytes

Versions: 26

Compression:

Stored size: 611 Bytes

Contents

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

  let(:params) { {} }
  let(:request) { described_class.new }

  before { request.fill(params) }

  describe 'request' do
    subject { request }

    its(:profile_type) { is_expected.to eq 'client' }
  end

  describe 'response' do
    let(:params) do
      {
        profile: {
          last_name: 'Мономах',
          first_name: 'Владимир'
        }
      }
    end

    subject { service.create_profile(request) }

    its(:profile_id) { is_expected.to be_a_moneta_id }
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

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