Sha256: 8f1d60fd0101af11870001f1fbe48df5e849545cb384f5acd56127472150917c

Contents?: true

Size: 443 Bytes

Versions: 4

Compression:

Stored size: 443 Bytes

Contents

require 'spec_helper'

describe FbGraph::Connections::Friends, '#friends' do
  it 'should return members as FbGraph::User' do
    mock_graph :get, 'emacs/members', 'groups/members/emacs_private', :params => {
      :access_token => 'access_token'
    } do
      users = FbGraph::Group.new('emacs', :access_token => 'access_token').members
      users.each do |user|
        user.should be_instance_of(FbGraph::User)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fb_graph-1.7.5 spec/fb_graph/connections/members_spec.rb
fb_graph-1.7.4 spec/fb_graph/connections/members_spec.rb
fb_graph-1.7.3 spec/fb_graph/connections/members_spec.rb
fb_graph-1.7.2 spec/fb_graph/connections/members_spec.rb