Sha256: 0382b4d87a36c02cf7c1cfedb14a3f1e0a25b50d76fb5835c73b5d3fd12f756d

Contents?: true

Size: 654 Bytes

Versions: 26

Compression:

Stored size: 654 Bytes

Contents

require 'spec_helper'

describe FbGraph2::Edge::TestUsers do
  context 'included in App' do
    describe '#test_users' do
      let(:app) { FbGraph2::App.app('app_token') }
      it 'should return an Array of FbGraph2::User with test_user token' do
        users = mock_graph :get, 'app/accounts/test-users', 'app/test_users', access_token: 'app_token' do
          app.test_users
        end
        users.should be_instance_of FbGraph2::Edge
        users.should_not be_blank
        users.each do |user|
          user.should be_instance_of FbGraph2::User
          user.access_token.should == 'test_user_token'
        end
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
fb_graph2-0.7.7 spec/fb_graph2/edge/test_users_spec.rb
fb_graph2-0.7.6 spec/fb_graph2/edge/test_users_spec.rb
fb_graph2-0.7.5 spec/fb_graph2/edge/test_users_spec.rb
fb_graph2-0.7.4 spec/fb_graph2/edge/test_users_spec.rb
fb_graph2-0.7.3 spec/fb_graph2/edge/test_users_spec.rb
fb_graph2-0.7.2 spec/fb_graph2/edge/test_users_spec.rb
fb_graph2-0.7.1 spec/fb_graph2/edge/test_users_spec.rb
fb_graph2-0.7.0 spec/fb_graph2/edge/test_users_spec.rb
fb_graph2-0.6.2 spec/fb_graph2/edge/test_users_spec.rb
fb_graph2-0.6.1 spec/fb_graph2/edge/test_users_spec.rb
fb_graph2-0.6.0 spec/fb_graph2/edge/test_users_spec.rb
fb_graph2-0.5.3 spec/fb_graph2/edge/test_users_spec.rb
fb_graph2-0.5.2 spec/fb_graph2/edge/test_users_spec.rb
fb_graph2-0.5.1 spec/fb_graph2/edge/test_users_spec.rb
fb_graph2-0.5.0 spec/fb_graph2/edge/test_users_spec.rb
fb_graph2-0.4.4 spec/fb_graph2/edge/test_users_spec.rb
fb_graph2-0.4.3 spec/fb_graph2/edge/test_users_spec.rb
fb_graph2-0.4.1 spec/fb_graph2/edge/test_users_spec.rb
fb_graph2-0.4.0 spec/fb_graph2/edge/test_users_spec.rb
fb_graph2-0.3.2 spec/fb_graph2/edge/test_users_spec.rb