Sha256: bc4f8f26fd8b3676444908b4c4fa27d47adf4c622638576a229e0cef484f784e
Contents?: true
Size: 1.08 KB
Versions: 1
Compression:
Stored size: 1.08 KB
Contents
require 'spec_helper' describe AngellistApi::Client::Startups do use_vcr_cassette 'startups' let(:client) { AngellistApi::Client.new } it 'gets information about a startup' do startup = client.get_startup(1124) startup.angellist_url.should eq 'http://angel.co/500-startups-fund' end it 'gets comments about a startup' do comments = client.startup_comments(1124) comments.should be_an Array comments.first.should have_key :comment comments.first.should have_key :user end it 'gets startups in batch' do startups = client.get_startups [1124, 31627] startups.first.name.should eq '500 Startups (Fund)' startups.last.angellist_url.should eq 'http://angel.co/newco' end it 'gets information about a startup found by URL slug' do startup = client.startup_search(:slug => '500-startups-fund') startup.company_url.should eq 'http://500.co' end it 'gets information about a startup found by site domain' do startup = client.startup_search(:domain => '500.co') startup.angellist_url.should eq 'http://angel.co/500-startups-fund' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
angellist_api-1.0.2 | spec/integration/startups_spec.rb |