Sha256: d0730a681f56d2bc9732e54b17ed5144115a817883db0611de784f4457ce3f9e
Contents?: true
Size: 954 Bytes
Versions: 6
Compression:
Stored size: 954 Bytes
Contents
require 'spec_helper' describe AngellistApi::Client::Paths, :authenticated, # Personal for authenticated account, manually maintained fixture :vcr => { :cassette_name => 'paths', :record => :none } do let(:client) { AngellistApi::Client.new } context 'when requesting by user IDs' do let(:paths) { client.get_paths(:user_ids => [1274]) } it 'gets paths between authenticated user and given user IDs' do paths.should have_key '1274' vertex = paths['1274'].first.first vertex.should have_key :connector vertex.should have_key :connection end end context 'when requesting by startup IDs' do let(:paths) { client.get_paths(:startup_ids => [76155]) } it 'gets paths between authenticated user and given startup IDs' do paths.should have_key '76155' vertex = paths['76155'].first.first vertex.should have_key :connector vertex.should have_key :connection end end end
Version data entries
6 entries across 6 versions & 1 rubygems