Sha256: 3feb4bf628cb7e28bbfaec8ddd5d4742c1505cb69fc2cb8f6668c9e4ec48e9ee

Contents?: true

Size: 585 Bytes

Versions: 26

Compression:

Stored size: 585 Bytes

Contents

require 'spec_helper'

describe FbGraph2::Edge::Invited do
  context 'included in Event' do
    let(:event) { FbGraph2::Event.new('event_id').authenticate('token') }

    describe '#invited' do
      it 'should return an Array of FbGraph2::User' do
        users = mock_graph :get, 'event_id/invited', 'event/invited', access_token: 'token' do
          event.invited
        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
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
fb_graph2-0.8.0 spec/fb_graph2/edge/invited_spec.rb
fb_graph2-0.7.9 spec/fb_graph2/edge/invited_spec.rb
fb_graph2-0.7.8 spec/fb_graph2/edge/invited_spec.rb
fb_graph2-0.7.7 spec/fb_graph2/edge/invited_spec.rb
fb_graph2-0.7.6 spec/fb_graph2/edge/invited_spec.rb
fb_graph2-0.7.5 spec/fb_graph2/edge/invited_spec.rb
fb_graph2-0.7.4 spec/fb_graph2/edge/invited_spec.rb
fb_graph2-0.7.3 spec/fb_graph2/edge/invited_spec.rb
fb_graph2-0.7.2 spec/fb_graph2/edge/invited_spec.rb
fb_graph2-0.7.1 spec/fb_graph2/edge/invited_spec.rb
fb_graph2-0.7.0 spec/fb_graph2/edge/invited_spec.rb
fb_graph2-0.6.2 spec/fb_graph2/edge/invited_spec.rb
fb_graph2-0.6.1 spec/fb_graph2/edge/invited_spec.rb
fb_graph2-0.6.0 spec/fb_graph2/edge/invited_spec.rb
fb_graph2-0.5.3 spec/fb_graph2/edge/invited_spec.rb
fb_graph2-0.5.2 spec/fb_graph2/edge/invited_spec.rb
fb_graph2-0.5.1 spec/fb_graph2/edge/invited_spec.rb
fb_graph2-0.5.0 spec/fb_graph2/edge/invited_spec.rb
fb_graph2-0.4.4 spec/fb_graph2/edge/invited_spec.rb
fb_graph2-0.4.3 spec/fb_graph2/edge/invited_spec.rb