Sha256: 1960bda4abff73804b658020adf9c7f1e521141567dd5d72d36c16b055778818
Contents?: true
Size: 1.79 KB
Versions: 35
Compression:
Stored size: 1.79 KB
Contents
require File.join(File.dirname(__FILE__), '../../spec_helper') describe FbGraph::Connections::Tagged, '#tagged' do context 'when included by FbGraph::User' do before(:all) do fake_json(:get, 'arjun/tagged', 'users/tagged/arjun_public') fake_json(:get, 'arjun/tagged?access_token=access_token', 'users/tagged/arjun_private') end context 'when no access_token given' do it 'should return posts the user has been tagged as FbGraph::Post' do posts = FbGraph::User.new('arjun').tagged posts.first.should == FbGraph::Post.new( '7901103_117809521578252', :from => { :id => '1404401889', :name => 'Elli Mooney' }, :to => { :data => [{ :id => '7901103', :name => 'Arjun Banker' }] }, :message => '...uh oh, here comes a privacy issue....', :picture => 'http://external.ak.fbcdn.net/safe_image.php?d=c659c86d415c60c37b2871bfd67f2a97&w=130&h=130&url=http%3A%2F%2Fcdn.venturebeat.com%2Fwp-content%2Fuploads%2F2010%2F04%2Fusethisone.jpg', :link => 'http://venturebeat.com/2010/04/23/blippy-credit-card-citibank/', :name => 'Blippy users’ credit card numbers found on Google | VentureBeat', :caption => 'venturebeat.com', :description => '[Update: Blippy cofounder Philip Kaplan emailed a response. CNET News is reporting that the cards in question were issued by ...', :icon => 'http://static.ak.fbcdn.net/rsrc.php/zB010/hash/9yvl71tw.gif', :created_time => '2010-04-24T08:07:59+0000', :updated_time => '2010-04-24T08:07:59+0000', :likes => 1 ) posts.each do |post| post.should be_instance_of(FbGraph::Post) end end end end end
Version data entries
35 entries across 35 versions & 2 rubygems