Sha256: 5bff427e06d5889fb7049fead46435f35ce9bc6183d4fb49f8966ac0a6d6f150

Contents?: true

Size: 830 Bytes

Versions: 5

Compression:

Stored size: 830 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) }
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
moneta-api-1.5.0 spec/lib/moneta/api/requests/get_profile_info_request_spec.rb
moneta-api-1.4.0 spec/lib/moneta/api/requests/get_profile_info_request_spec.rb
moneta-api-1.3.0 spec/lib/moneta/api/requests/get_profile_info_request_spec.rb
moneta-api-1.2.1 spec/lib/moneta/api/requests/get_profile_info_request_spec.rb
moneta-api-1.2.0 spec/lib/moneta/api/requests/get_profile_info_request_spec.rb