Sha256: 1cd9a569f2873cf661543b50a8a1eff26b8713d526ffe0759ab5fe4d63f9d542
Contents?: true
Size: 545 Bytes
Versions: 1
Compression:
Stored size: 545 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 pages with page token' do accounts = mock_graph :get, 'me/accounts', 'user/accounts' do me.accounts end account = accounts.first account.should be_instance_of FbGraph2::Page account.name.should == 'Identity Conference #idcon' account.access_token.should == 'page_token' end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fb_graph2-0.0.1 | spec/fb_graph2/edge/accounts_spec.rb |