Sha256: 2a23e08ab61c4421a4db6f3eaad198f310c1d7c4d56ceecf8b3c1f8e77209205
Contents?: true
Size: 633 Bytes
Versions: 8
Compression:
Stored size: 633 Bytes
Contents
require 'spec_helper' describe FbGraph2::Edge::Members do context 'included in Group' do let(:group) { FbGraph2::Group.new('group_id').authenticate('token') } describe '#members' do it 'should return an Array of FbGraph2::User' do users = mock_graph :get, 'group_id/members', 'group/members', access_token: 'token' do group.members end users.should be_instance_of FbGraph2::Edge users.should_not be_blank users.each do |user| user.should be_instance_of FbGraph2::User end users.last.administrator.should be true end end end end
Version data entries
8 entries across 8 versions & 1 rubygems