Sha256: 505e8c0132693e215ab216a952c61f8cc6f146fb9462f086c6d3408b4ed2a033

Contents?: true

Size: 471 Bytes

Versions: 37

Compression:

Stored size: 471 Bytes

Contents

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

describe FbGraph::Connections::Interests, '#interests' do
  before do
    fake_json(:get, 'matake/interests?access_token=access_token', 'users/interests/matake_private')
  end

  it 'should return interests pages as FbGraph::Page' do
    pages = FbGraph::User.new('matake', :access_token => 'access_token').interests
    pages.each do |page|
      page.should be_instance_of(FbGraph::Page)
    end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
fb_graph-1.7.0 spec/fb_graph/connections/interests_spec.rb
fb_graph-1.7.0.alpha2 spec/fb_graph/connections/interests_spec.rb
fb_graph-1.6.9 spec/fb_graph/connections/interests_spec.rb
fb_graph-1.7.0.alpha spec/fb_graph/connections/interests_spec.rb
fb_graph-1.6.8 spec/fb_graph/connections/interests_spec.rb
fb_graph-1.6.7 spec/fb_graph/connections/interests_spec.rb
fb_graph-1.6.5 spec/fb_graph/connections/interests_spec.rb
fb_graph-1.6.4 spec/fb_graph/connections/interests_spec.rb
fb_graph-1.6.3 spec/fb_graph/connections/interests_spec.rb
fb_graph-1.6.2 spec/fb_graph/connections/interests_spec.rb
fb_graph-1.6.1 spec/fb_graph/connections/interests_spec.rb
fb_graph-1.6.0 spec/fb_graph/connections/interests_spec.rb
fb_graph-1.5.5 spec/fb_graph/connections/interests_spec.rb
fb_graph-1.5.4 spec/fb_graph/connections/interests_spec.rb
fb_graph-1.5.3 spec/fb_graph/connections/interests_spec.rb
fb_graph-1.5.2 spec/fb_graph/connections/interests_spec.rb
fb_graph-1.5.1 spec/fb_graph/connections/interests_spec.rb
fb_graph-1.5.0 spec/fb_graph/connections/interests_spec.rb
fb_graph-1.4.1 spec/fb_graph/connections/interests_spec.rb
fb_graph-1.4.0 spec/fb_graph/connections/interests_spec.rb