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.7.17 spec/fb_graph/connections/friend_requests_spec.rb
fb_graph-2.7.16 spec/fb_graph/connections/friend_requests_spec.rb
fb_graph-2.7.15 spec/fb_graph/connections/friend_requests_spec.rb
fb_graph-2.7.14 spec/fb_graph/connections/friend_requests_spec.rb
fb_graph-2.7.13 spec/fb_graph/connections/friend_requests_spec.rb
fb_graph-2.7.12 spec/fb_graph/connections/friend_requests_spec.rb
fb_graph-2.7.11 spec/fb_graph/connections/friend_requests_spec.rb
fb_graph-2.7.10 spec/fb_graph/connections/friend_requests_spec.rb
fb_graph-2.7.9 spec/fb_graph/connections/friend_requests_spec.rb
fb_graph-2.7.8 spec/fb_graph/connections/friend_requests_spec.rb
fb_graph-2.7.7 spec/fb_graph/connections/friend_requests_spec.rb
fb_graph-2.7.6 spec/fb_graph/connections/friend_requests_spec.rb
fb_graph-2.7.5 spec/fb_graph/connections/friend_requests_spec.rb
fb_graph-2.7.4 spec/fb_graph/connections/friend_requests_spec.rb
fb_graph-2.7.3 spec/fb_graph/connections/friend_requests_spec.rb
fb_graph-2.7.2 spec/fb_graph/connections/friend_requests_spec.rb
fb_graph-2.7.1 spec/fb_graph/connections/friend_requests_spec.rb
fb_graph-2.7.0 spec/fb_graph/connections/friend_requests_spec.rb
fb_graph-2.6.7 spec/fb_graph/connections/friend_requests_spec.rb
fb_graph-2.6.6 spec/fb_graph/connections/friend_requests_spec.rb