Sha256: 9c6421c0699b631d24e31d5fe11bef819e5e7f047a0762e0219eeb586f86b4e4
Contents?: true
Size: 897 Bytes
Versions: 4
Compression:
Stored size: 897 Bytes
Contents
require 'spec_helper' describe AngellistApi::Client::Users, :vcr => { :cassette_name => 'users' } do let(:client) { AngellistApi::Client.new } it 'gets info for a user' do user = client.get_user(2850) user.angellist_url.should eq 'http://angel.co/500startups' end it 'gets users in batch' do users = client.get_users([15821, 100303]) users.map { |u| u.angellist_url }.should eq %w[http://angel.co/tchae http://angel.co/scomma] end it 'gets info for a user by URL slug' do user = client.user_search(:slug => '500startups') user.linkedin_url.should eq 'http://www.linkedin.com/company/500-startups' end it 'gets the companies that a user has been tagged in' do roles = client.user_roles(2850) roles.startup_roles.size.should be > 0 roles.startup_roles.each do |relationship| ROLES.should include relationship.role end end end
Version data entries
4 entries across 4 versions & 1 rubygems