Sha256: ec0bcad0c6ca8bfadaacd46aaaa4c8114c83419f84932b3b11504fb14d58b624

Contents?: true

Size: 596 Bytes

Versions: 72

Compression:

Stored size: 596 Bytes

Contents

require 'spec_helper'

describe FbGraph::FriendList do

  it 'should setup all supported attributes' do
    attributes = {
      :id => '12345',
      :name => 'My List'
    }
    video = FbGraph::FriendList.new(attributes.delete(:id), attributes)
    video.identifier.should == '12345'
    video.name.should       == 'My List'
  end

  describe 'destroy' do
    it 'should return true' do
      mock_graph :delete, 'list_id', 'true', :access_token => 'access_token' do
        FbGraph::FriendList.new('list_id').destroy(:access_token => 'access_token').should be_true
      end
    end
  end
end

Version data entries

72 entries across 72 versions & 1 rubygems

Version Path
fb_graph-2.7.17 spec/fb_graph/friend_list_spec.rb
fb_graph-2.7.16 spec/fb_graph/friend_list_spec.rb
fb_graph-2.7.15 spec/fb_graph/friend_list_spec.rb
fb_graph-2.7.14 spec/fb_graph/friend_list_spec.rb
fb_graph-2.7.13 spec/fb_graph/friend_list_spec.rb
fb_graph-2.7.12 spec/fb_graph/friend_list_spec.rb
fb_graph-2.7.11 spec/fb_graph/friend_list_spec.rb
fb_graph-2.7.10 spec/fb_graph/friend_list_spec.rb
fb_graph-2.7.9 spec/fb_graph/friend_list_spec.rb
fb_graph-2.7.8 spec/fb_graph/friend_list_spec.rb
fb_graph-2.7.7 spec/fb_graph/friend_list_spec.rb
fb_graph-2.7.6 spec/fb_graph/friend_list_spec.rb
fb_graph-2.7.5 spec/fb_graph/friend_list_spec.rb
fb_graph-2.7.4 spec/fb_graph/friend_list_spec.rb
fb_graph-2.7.3 spec/fb_graph/friend_list_spec.rb
fb_graph-2.7.2 spec/fb_graph/friend_list_spec.rb
fb_graph-2.7.1 spec/fb_graph/friend_list_spec.rb
fb_graph-2.7.0 spec/fb_graph/friend_list_spec.rb
fb_graph-2.6.7 spec/fb_graph/friend_list_spec.rb
fb_graph-2.6.6 spec/fb_graph/friend_list_spec.rb