Sha256: 2e3c6cd17d36b6f2e5c62c82310b3142f7d707a24e9ce148ff75cae40cbccc3f

Contents?: true

Size: 701 Bytes

Versions: 69

Compression:

Stored size: 701 Bytes

Contents

require 'spec_helper'

describe FbGraph::Connections::FriendRequests do
  it 'should return an Array of FriendRequest' do
    mock_graph :get, 'me/friendrequests', 'users/friend_requests/sample', :access_token => 'access_token' do
      friend_requests = FbGraph::User.me('access_token').friend_requests
      friend_requests.total_count.should == 1
      friend_requests.unread_count.should == 1
      friend_requests.updated_time.should == Time.parse('2011-10-31T03:38:55+0000')
      friend_request = friend_requests.first
      friend_request.should be_a FbGraph::FriendRequest
      friend_request.from.should be_a FbGraph::User
      friend_request.to.should be_a FbGraph::User
    end
  end
end

Version data entries

69 entries across 69 versions & 1 rubygems

Version Path
fb_graph-2.6.5 spec/fb_graph/connections/friend_requests_spec.rb
fb_graph-2.6.4 spec/fb_graph/connections/friend_requests_spec.rb
fb_graph-2.6.3 spec/fb_graph/connections/friend_requests_spec.rb
fb_graph-2.6.2 spec/fb_graph/connections/friend_requests_spec.rb
fb_graph-2.6.1 spec/fb_graph/connections/friend_requests_spec.rb
fb_graph-2.6.0 spec/fb_graph/connections/friend_requests_spec.rb
fb_graph-2.5.9 spec/fb_graph/connections/friend_requests_spec.rb
fb_graph-2.5.8 spec/fb_graph/connections/friend_requests_spec.rb
fb_graph-2.5.7 spec/fb_graph/connections/friend_requests_spec.rb
fb_graph-2.5.6 spec/fb_graph/connections/friend_requests_spec.rb
fb_graph-2.5.5 spec/fb_graph/connections/friend_requests_spec.rb
fb_graph-2.5.4 spec/fb_graph/connections/friend_requests_spec.rb
fb_graph-2.5.3 spec/fb_graph/connections/friend_requests_spec.rb
fb_graph-2.5.2 spec/fb_graph/connections/friend_requests_spec.rb
fb_graph-2.5.1 spec/fb_graph/connections/friend_requests_spec.rb
fb_graph-2.5.0 spec/fb_graph/connections/friend_requests_spec.rb
fb_graph-2.4.20 spec/fb_graph/connections/friend_requests_spec.rb
fb_graph-2.4.19 spec/fb_graph/connections/friend_requests_spec.rb
fb_graph-2.4.18 spec/fb_graph/connections/friend_requests_spec.rb
fb_graph-2.4.17 spec/fb_graph/connections/friend_requests_spec.rb