Sha256: 04b48ea585fae984bbc15d3706d62fc1e65f10836826cfd6f1f300aece611937

Contents?: true

Size: 581 Bytes

Versions: 7

Compression:

Stored size: 581 Bytes

Contents

require 'spec_helper'

describe FbGraph2::Edge::InvitableFriends do
  context 'included in User' do
    describe '#invitable_friends' do
      let(:me) { FbGraph2::User.me('token') }
      it 'should return an Array of FbGraph2::Struct::InvitableFriend' do
        users = mock_graph :get, 'me/invitable_friends', 'user/invitable_friends', access_token: 'token' do
          me.invitable_friends
        end
        users.should_not be_blank
        users.each do |user|
          user.should be_instance_of FbGraph2::Struct::InvitableFriend
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
fb_graph2-0.0.11 spec/fb_graph2/edge/invitable_friends_spec.rb
fb_graph2-0.0.10 spec/fb_graph2/edge/invitable_friends_spec.rb
fb_graph2-0.0.9 spec/fb_graph2/edge/invitable_friends_spec.rb
fb_graph2-0.0.8 spec/fb_graph2/edge/invitable_friends_spec.rb
fb_graph2-0.0.7 spec/fb_graph2/edge/invitable_friends_spec.rb
fb_graph2-0.0.6 spec/fb_graph2/edge/invitable_friends_spec.rb
fb_graph2-0.0.5 spec/fb_graph2/edge/invitable_friends_spec.rb