Sha256: bcd50d4bb5e38a1517cb12e17591bf31aef28cb397ca6552ab07304a956fd7df

Contents?: true

Size: 913 Bytes

Versions: 6

Compression:

Stored size: 913 Bytes

Contents

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

  let(:unit_id) { 42868 }
  let(:request) { described_class.new }
  let(:response) { service.get_profile_info(request) }
  let(:params) { { unit_id: unit_id } }

  before { request.fill(params) }

  subject { response.attribute }

  its([:last_name]) { is_expected.to eq(value: 'Мономах', approved: false) }
  its([:first_name]) { is_expected.to eq(value: 'Владимир', approved: false) }
  its([:timezone]) { is_expected.to eq(value: 'Europe/Moscow', approved: false) }
  its([:profileType]) { is_expected.to eq(value: 'client', approved: false) }
  its([:name]) { is_expected.to eq(value: 'Мономах Владимир', approved: false) }
  its([:unitid]) { is_expected.to eq(value: '42868', approved: false) }
  its([:cell_phone]) { is_expected.to eq(value: '+79520348677', approved: false) }
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
moneta-api-1.11.0 spec/lib/moneta/api/requests/get_profile_info_request_spec.rb
moneta-api-1.10.0 spec/lib/moneta/api/requests/get_profile_info_request_spec.rb
moneta-api-1.9.0 spec/lib/moneta/api/requests/get_profile_info_request_spec.rb
moneta-api-1.8.0 spec/lib/moneta/api/requests/get_profile_info_request_spec.rb
moneta-api-1.7.0 spec/lib/moneta/api/requests/get_profile_info_request_spec.rb
moneta-api-1.6.0 spec/lib/moneta/api/requests/get_profile_info_request_spec.rb