Sha256: b262270f4dd221cbe71b693307c2866c24b5959439c8665a3e68d5430aa555cf

Contents?: true

Size: 564 Bytes

Versions: 8

Compression:

Stored size: 564 Bytes

Contents

require 'spec_helper'

describe FbGraph2::Edge::FriendLists do
  context 'included in User' do
    describe '#friend_lists' do
      let(:me) { FbGraph2::User.me('token') }
      it 'should return an Array of FbGraph2::FriendList' do
        friend_lists = mock_graph :get, 'me/friendlists', 'user/friend_lists', access_token: 'token' do
          me.friend_lists
        end
        friend_lists.should_not be_blank
        friend_lists.each do |friend_list|
          friend_list.should be_instance_of FbGraph2::FriendList
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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