Sha256: 7cceeffb035dfb6cd46ccf7c002f4e2010b3cec49db9ba0d992d1952dde24132

Contents?: true

Size: 912 Bytes

Versions: 14

Compression:

Stored size: 912 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

14 entries across 14 versions & 1 rubygems

Version Path
moneta-api-2.1.0 spec/lib/moneta/api/requests/get_profile_info_request_spec.rb
moneta-api-2.0.0 spec/lib/moneta/api/requests/get_profile_info_request_spec.rb
moneta-api-2.0.0.rc2 spec/lib/moneta/api/requests/get_profile_info_request_spec.rb
moneta-api-2.0.0.rc1 spec/lib/moneta/api/requests/get_profile_info_request_spec.rb
moneta-api-1.13.0 spec/lib/moneta/api/requests/get_profile_info_request_spec.rb
moneta-api-1.12.8 spec/lib/moneta/api/requests/get_profile_info_request_spec.rb
moneta-api-1.12.7 spec/lib/moneta/api/requests/get_profile_info_request_spec.rb
moneta-api-1.12.6 spec/lib/moneta/api/requests/get_profile_info_request_spec.rb
moneta-api-1.12.5 spec/lib/moneta/api/requests/get_profile_info_request_spec.rb
moneta-api-1.12.4 spec/lib/moneta/api/requests/get_profile_info_request_spec.rb
moneta-api-1.12.3 spec/lib/moneta/api/requests/get_profile_info_request_spec.rb
moneta-api-1.12.2 spec/lib/moneta/api/requests/get_profile_info_request_spec.rb
moneta-api-1.12.1 spec/lib/moneta/api/requests/get_profile_info_request_spec.rb
moneta-api-1.12.0 spec/lib/moneta/api/requests/get_profile_info_request_spec.rb