Sha256: 0f5e887a8b9f56bf6061c1ea9e366be52808aab50db99b64c1631011b69dcca1

Contents?: true

Size: 462 Bytes

Versions: 4

Compression:

Stored size: 462 Bytes

Contents

require 'spec_helper'

describe FbGraph::Connections::Interests, '#interests' do
  it 'should return interests pages as FbGraph::Page' do
    mock_graph :get, 'matake/interests', 'users/interests/matake_private', :params => {
      :access_token => 'access_token'
    } 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
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fb_graph-1.7.5 spec/fb_graph/connections/interests_spec.rb
fb_graph-1.7.4 spec/fb_graph/connections/interests_spec.rb
fb_graph-1.7.3 spec/fb_graph/connections/interests_spec.rb
fb_graph-1.7.2 spec/fb_graph/connections/interests_spec.rb