Sha256: a35825c26eef87645bbe3b2e1eb21f23e7e61667873c4fa38f3878b69c216cf4
Contents?: true
Size: 916 Bytes
Versions: 1
Compression:
Stored size: 916 Bytes
Contents
require 'spec_helper' describe AngellistApi::Client::Users, :vcr => { :cassette_name => 'users' } do let(:client) { AngellistApi::Client.new } let(:user_id) { 155 } # Naval it 'gets info for a user' do user = client.get_user(user_id) user.angellist_url.should eq 'https://angel.co/naval' end it 'gets users in batch' do users = client.get_users([15821, 100303]) users.map { |u| u.angellist_url }.should eq %w[https://angel.co/tchae https://angel.co/scomma] end it 'gets info for a user by URL slug' do user = client.user_search(:slug => 'naval') user.linkedin_url.should eq 'http://www.linkedin.com/in/navalr' end it 'gets the companies that a user has been tagged in' do roles = client.user_roles(user_id) roles.startup_roles.size.should be > 0 roles.startup_roles.each do |relationship| ROLES.should include relationship.role end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
angellist_api-1.1.0 | spec/integration/users_spec.rb |