Sha256: d99690e5a207c448e1248d9fb282f269af2013f7a2acb6db71d59b8bb73db2fb
Contents?: true
Size: 748 Bytes
Versions: 1
Compression:
Stored size: 748 Bytes
Contents
require 'spec_helper' describe AngellistApi::Client::ActivityFeeds do use_vcr_cassette 'activity_feeds' let(:client) { AngellistApi::Client.new } let(:valid_types) do %w[Comment Follow Review StartupIntro StartupPublish StartupRole StatusUpdate Update].freeze end it 'fetches Activity Feed entries' do client.get_feed.should be_an_instance_of Hashie::Mash end it 'wraps API item types' do feed = client.get_feed[:feed] feed.each do |activity| valid_types.should include activity.item.type end end it 'gets a single Activity Feed entry' do activity = client.feed_item('8fCC3') activity.should have_key :item activity.should have_key :actor activity.should have_key :target end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
angellist_api-1.0.2 | spec/integration/activity_feeds_spec.rb |