Sha256: 02ec665e5b2e49851528c0eea5ab24988a792772964b49cdc15b45bb3a148e1c

Contents?: true

Size: 515 Bytes

Versions: 10

Compression:

Stored size: 515 Bytes

Contents

require File.join(File.dirname(__FILE__), '../spec_helper')

describe FbGraph::Collection, '.new' do
  before(:all) do
    fake_json(:get, 'platform/statuses?access_token=access_token', 'pages/statuses/platform_private')
  end

  it 'should return an array with pagination info' do
    statuses = FbGraph::Page.new('platform', :access_token => 'access_token').statuses.collection
    statuses.should be_kind_of(Array)
    statuses.previous.should be_kind_of(Hash)
    statuses.next.should be_kind_of(Hash)
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
fb_graph-1.0.2 spec/fb_graph/collection_spec.rb
fb_graph-1.0.1 spec/fb_graph/collection_spec.rb
fb_graph-1.0.0 spec/fb_graph/collection_spec.rb
fb_graph-0.8.0 spec/fb_graph/collection_spec.rb
fb_graph-0.7.3 spec/fb_graph/collection_spec.rb
fb_graph-0.7.2 spec/fb_graph/collection_spec.rb
fb_graph-0.7.1 spec/fb_graph/collection_spec.rb
fb_graph-0.7.0 spec/fb_graph/collection_spec.rb
fb_graph-0.6.0 spec/fb_graph/collection_spec.rb
fb_graph-0.5.0 spec/fb_graph/collection_spec.rb