Sha256: 0cfed7e63694d54ae340c17b698a70f7b08b8878f68cc8b3bb8ba1b84c25791f
Contents?: true
Size: 782 Bytes
Versions: 1
Compression:
Stored size: 782 Bytes
Contents
require 'spec_helper' describe AngellistApi::Client::Tags do use_vcr_cassette 'tags' let(:client) { AngellistApi::Client.new } it 'gets info for a tag' do tag = client.get_tag(856) tag.display_name.should eq 'Venture Capital' end it "gets a tag's children" do children = client.get_tag_children(856).children children.map { |tag| tag.display_name }.should include 'Venture Hacks' end it "gets a tag's parents" do parents = client.get_tag_parents(856).parents parents.map { |tag| tag.display_name }.should include 'Organized Crime' # WTF? end it 'gets startups tagged with a given tag' do tagged = client.get_tag_startups(856) tagged.should have_key :startups tagged.startups.first.should have_key :company_url end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
angellist_api-1.0.2 | spec/integration/tags_spec.rb |