Sha256: e6e5e1f4863188489e64b573aa3dde932edf3a6c7ae1bb77765406071cf47e30
Contents?: true
Size: 705 Bytes
Versions: 37
Compression:
Stored size: 705 Bytes
Contents
require 'spec_helper' describe FbGraph2::Edge::Accounts do context 'included in User' do describe '#accounts' do let(:me) { FbGraph2::User.me('token') } it 'should return an Array of FbGraph2::Page with page token' do accounts = mock_graph :get, 'me/accounts', 'user/accounts', access_token: 'token' do me.accounts end accounts.should be_instance_of FbGraph2::Edge accounts.should_not be_blank accounts.each do |account| account.should be_instance_of FbGraph2::Page account.access_token.should == 'page_token' end accounts.first.name.should == 'Identity Conference #idcon' end end end end
Version data entries
37 entries across 37 versions & 1 rubygems