fb_graph 0.2.2 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. data/VERSION +1 -1
  2. data/fb_graph.gemspec +1 -1
  3. data/lib/fb_graph/connections/activities.rb +3 -1
  4. data/lib/fb_graph/connections/albums.rb +6 -2
  5. data/lib/fb_graph/connections/attending.rb +3 -1
  6. data/lib/fb_graph/connections/books.rb +3 -1
  7. data/lib/fb_graph/connections/comments.rb +6 -2
  8. data/lib/fb_graph/connections/declined.rb +3 -1
  9. data/lib/fb_graph/connections/events.rb +6 -2
  10. data/lib/fb_graph/connections/feed.rb +6 -2
  11. data/lib/fb_graph/connections/friends.rb +3 -1
  12. data/lib/fb_graph/connections/groups.rb +3 -1
  13. data/lib/fb_graph/connections/home.rb +3 -1
  14. data/lib/fb_graph/connections/interests.rb +3 -1
  15. data/lib/fb_graph/connections/invited.rb +3 -1
  16. data/lib/fb_graph/connections/likes.rb +3 -1
  17. data/lib/fb_graph/connections/links.rb +6 -2
  18. data/lib/fb_graph/connections/maybe.rb +3 -1
  19. data/lib/fb_graph/connections/members.rb +3 -1
  20. data/lib/fb_graph/connections/movies.rb +3 -1
  21. data/lib/fb_graph/connections/music.rb +3 -1
  22. data/lib/fb_graph/connections/noreply.rb +3 -1
  23. data/lib/fb_graph/connections/notes.rb +6 -2
  24. data/lib/fb_graph/connections/photos.rb +6 -2
  25. data/lib/fb_graph/connections/posts.rb +3 -1
  26. data/lib/fb_graph/connections/statuses.rb +3 -1
  27. data/lib/fb_graph/connections/tagged.rb +3 -1
  28. data/lib/fb_graph/connections/television.rb +3 -1
  29. data/lib/fb_graph/connections/videos.rb +3 -1
  30. data/spec/fb_graph/connections/activities_spec.rb +1 -0
  31. data/spec/fb_graph/connections/albums_spec.rb +2 -0
  32. data/spec/fb_graph/connections/books_spec.rb +1 -0
  33. data/spec/fb_graph/connections/comments_spec.rb +2 -0
  34. data/spec/fb_graph/connections/events_spec.rb +2 -0
  35. data/spec/fb_graph/connections/feed_spec.rb +27 -0
  36. data/spec/fb_graph/connections/friends_spec.rb +1 -0
  37. data/spec/fb_graph/connections/groups_spec.rb +1 -0
  38. data/spec/fb_graph/connections/home_spec.rb +1 -0
  39. data/spec/fb_graph/connections/likes_spec.rb +1 -0
  40. data/spec/fb_graph/connections/links_spec.rb +1 -0
  41. data/spec/fb_graph/connections/notes_spec.rb +1 -0
  42. data/spec/fb_graph/connections/photos_spec.rb +1 -0
  43. data/spec/fb_graph/connections/statuses_spec.rb +2 -0
  44. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.2
1
+ 0.3.0
data/fb_graph.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{fb_graph}
8
- s.version = "0.2.2"
8
+ s.version = "0.3.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["nov matake"]
@@ -4,7 +4,9 @@ module FbGraph
4
4
  def activities(options = {})
5
5
  activities = FbGraph::Collection.new(get(options.merge(:connection => 'activities')))
6
6
  activities.map! do |activity|
7
- FbGraph::Page.new(activity.delete(:id), activity)
7
+ FbGraph::Page.new(activity.delete(:id), activity.merge(
8
+ :access_token => options[:access_token] || self.access_token
9
+ ))
8
10
  end
9
11
  end
10
12
  end
@@ -4,13 +4,17 @@ module FbGraph
4
4
  def albums(options = {})
5
5
  albums = FbGraph::Collection.new(get(options.merge(:connection => 'albums')))
6
6
  albums.map! do |album|
7
- Album.new(album.delete(:id), album)
7
+ Album.new(album.delete(:id), album.merge(
8
+ :access_token => options[:access_token] || self.access_token
9
+ ))
8
10
  end
9
11
  end
10
12
 
11
13
  def album!(options = {})
12
14
  album = post(options.merge(:connection => 'albums'))
13
- Album.new(album.delete(:id), options.merge(album))
15
+ Album.new(album.delete(:id), options.merge(album).merge(
16
+ :access_token => options[:access_token] || self.access_token
17
+ ))
14
18
  end
15
19
  end
16
20
  end
@@ -4,7 +4,9 @@ module FbGraph
4
4
  def attending(options = {})
5
5
  members = FbGraph::Collection.new(get(options.merge(:connection => 'attending')))
6
6
  members.map! do |member|
7
- User.new(member.delete(:id), member)
7
+ User.new(member.delete(:id), member.merge(
8
+ :access_token => options[:access_token] || self.access_token
9
+ ))
8
10
  end
9
11
  end
10
12
 
@@ -4,7 +4,9 @@ module FbGraph
4
4
  def books(options = {})
5
5
  books = FbGraph::Collection.new(get(options.merge(:connection => 'books')))
6
6
  books.map! do |book|
7
- Page.new(book.delete(:id), book)
7
+ Page.new(book.delete(:id), book.merge(
8
+ :access_token => options[:access_token] || self.access_token
9
+ ))
8
10
  end
9
11
  end
10
12
  end
@@ -11,13 +11,17 @@ module FbGraph
11
11
  FbGraph::Collection.new(get(options.merge(:connection => 'comments')))
12
12
  end
13
13
  comments.map! do |comment|
14
- Comment.new(comment.delete(:id), comment)
14
+ Comment.new(comment.delete(:id), comment.merge(
15
+ :access_token => options[:access_token] || self.access_token
16
+ ))
15
17
  end
16
18
  end
17
19
 
18
20
  def comment!(options = {})
19
21
  comment = post(options.merge(:connection => 'comments'))
20
- Comment.new(comment.delete(:id), options.merge(comment))
22
+ Comment.new(comment.delete(:id), options.merge(comment).merge(
23
+ :access_token => options[:access_token] || self.access_token
24
+ ))
21
25
  end
22
26
 
23
27
  # NOTE:
@@ -4,7 +4,9 @@ module FbGraph
4
4
  def declined(options = {})
5
5
  members = FbGraph::Collection.new(get(options.merge(:connection => 'declined')))
6
6
  members.map! do |member|
7
- User.new(member.delete(:id), member)
7
+ User.new(member.delete(:id), member.merge(
8
+ :access_token => options[:access_token] || self.access_token
9
+ ))
8
10
  end
9
11
  end
10
12
 
@@ -4,13 +4,17 @@ module FbGraph
4
4
  def events(options = {})
5
5
  events = FbGraph::Collection.new(get(options.merge(:connection => 'events')))
6
6
  events.map! do |event|
7
- Event.new(event.delete(:id), event)
7
+ Event.new(event.delete(:id), event.merge(
8
+ :access_token => options[:access_token] || self.access_token
9
+ ))
8
10
  end
9
11
  end
10
12
 
11
13
  def event!(options = {})
12
14
  event = post(options.merge(:connection => 'events'))
13
- Event.new(event.delete(:id), options.merge(event))
15
+ Event.new(event.delete(:id), options.merge(event).merge(
16
+ :access_token => options[:access_token] || self.access_token
17
+ ))
14
18
  end
15
19
  end
16
20
  end
@@ -4,13 +4,17 @@ module FbGraph
4
4
  def feed(options = {})
5
5
  posts = FbGraph::Collection.new(get(options.merge(:connection => 'feed')))
6
6
  posts.map! do |post|
7
- Post.new(post.delete(:id), post)
7
+ Post.new(post.delete(:id), post.merge(
8
+ :access_token => options[:access_token] || self.access_token
9
+ ))
8
10
  end
9
11
  end
10
12
 
11
13
  def feed!(options = {})
12
14
  post = post(options.merge(:connection => 'feed'))
13
- Post.new(post.delete(:id), options.merge(post))
15
+ Post.new(post.delete(:id), options.merge(post).merge(
16
+ :access_token => options[:access_token] || self.access_token
17
+ ))
14
18
  end
15
19
  end
16
20
  end
@@ -4,7 +4,9 @@ module FbGraph
4
4
  def friends(options = {})
5
5
  users = FbGraph::Collection.new(get(options.merge(:connection => 'friends')))
6
6
  users.map! do |user|
7
- User.new(user.delete(:id), user)
7
+ User.new(user.delete(:id), user.merge(
8
+ :access_token => options[:access_token] || self.access_token
9
+ ))
8
10
  end
9
11
  end
10
12
  end
@@ -4,7 +4,9 @@ module FbGraph
4
4
  def groups(options = {})
5
5
  groups = FbGraph::Collection.new(get(options.merge(:connection => 'groups')))
6
6
  groups.map! do |group|
7
- Group.new(group.delete(:id), group)
7
+ Group.new(group.delete(:id), group.merge(
8
+ :access_token => options[:access_token] || self.access_token
9
+ ))
8
10
  end
9
11
  end
10
12
  end
@@ -4,7 +4,9 @@ module FbGraph
4
4
  def home(options = {})
5
5
  posts = FbGraph::Collection.new(get(options.merge(:connection => 'home')))
6
6
  posts.map! do |post|
7
- Post.new(post.delete(:id), post)
7
+ Post.new(post.delete(:id), post.merge(
8
+ :access_token => options[:access_token] || self.access_token
9
+ ))
8
10
  end
9
11
  end
10
12
  end
@@ -4,7 +4,9 @@ module FbGraph
4
4
  def interests(options = {})
5
5
  interests = FbGraph::Collection.new(get(options.merge(:connection => 'interests')))
6
6
  interests.map! do |interest|
7
- Page.new(interest.delete(:id), interest)
7
+ Page.new(interest.delete(:id), interest.merge(
8
+ :access_token => options[:access_token] || self.access_token
9
+ ))
8
10
  end
9
11
  end
10
12
  end
@@ -4,7 +4,9 @@ module FbGraph
4
4
  def invited(options = {})
5
5
  members = FbGraph::Collection.new(get(options.merge(:connection => 'invited')))
6
6
  members.map! do |member|
7
- User.new(member.delete(:id), member)
7
+ User.new(member.delete(:id), member.merge(
8
+ :access_token => options[:access_token] || self.access_token
9
+ ))
8
10
  end
9
11
  end
10
12
  end
@@ -4,7 +4,9 @@ module FbGraph
4
4
  def likes(options = {})
5
5
  likes = FbGraph::Collection.new(get(options.merge(:connection => 'likes')))
6
6
  likes.map! do |like|
7
- Page.new(like.delete(:id), like)
7
+ Page.new(like.delete(:id), like.merge(
8
+ :access_token => options[:access_token] || self.access_token
9
+ ))
8
10
  end
9
11
  end
10
12
 
@@ -4,13 +4,17 @@ module FbGraph
4
4
  def links(options = {})
5
5
  links = FbGraph::Collection.new(get(options.merge(:connection => 'links')))
6
6
  links.map! do |link|
7
- Link.new(link.delete(:id), link)
7
+ Link.new(link.delete(:id), link.merge(
8
+ :access_token => options[:access_token] || self.access_token
9
+ ))
8
10
  end
9
11
  end
10
12
 
11
13
  def link!(options = {})
12
14
  link = post(options.merge(:connection => 'links'))
13
- Link.new(link.delete(:id), options.merge(link))
15
+ Link.new(link.delete(:id), options.merge(link).merge(
16
+ :access_token => options[:access_token] || self.access_token
17
+ ))
14
18
  end
15
19
  end
16
20
  end
@@ -4,7 +4,9 @@ module FbGraph
4
4
  def maybe(options = {})
5
5
  members = FbGraph::Collection.new(get(options.merge(:connection => 'maybe')))
6
6
  members.map! do |member|
7
- User.new(member.delete(:id), member)
7
+ User.new(member.delete(:id), member.merge(
8
+ :access_token => options[:access_token] || self.access_token
9
+ ))
8
10
  end
9
11
  end
10
12
 
@@ -4,7 +4,9 @@ module FbGraph
4
4
  def members(options = {})
5
5
  members = FbGraph::Collection.new(get(options.merge(:connection => 'members')))
6
6
  members.map! do |member|
7
- User.new(member.delete(:id), member)
7
+ User.new(member.delete(:id), member.merge(
8
+ :access_token => options[:access_token] || self.access_token
9
+ ))
8
10
  end
9
11
  end
10
12
  end
@@ -4,7 +4,9 @@ module FbGraph
4
4
  def movies(options = {})
5
5
  movies = FbGraph::Collection.new(get(options.merge(:connection => 'movies')))
6
6
  movies.map! do |movie|
7
- Page.new(movie.delete(:id), movie)
7
+ Page.new(movie.delete(:id), movie.merge(
8
+ :access_token => options[:access_token] || self.access_token
9
+ ))
8
10
  end
9
11
  end
10
12
  end
@@ -4,7 +4,9 @@ module FbGraph
4
4
  def music(options = {})
5
5
  music = FbGraph::Collection.new(get(options.merge(:connection => 'music')))
6
6
  music.map! do |_music_|
7
- Page.new(_music_.delete(:id), _music_)
7
+ Page.new(_music_.delete(:id), _music_.merge(
8
+ :access_token => options[:access_token] || self.access_token
9
+ ))
8
10
  end
9
11
  end
10
12
  end
@@ -4,7 +4,9 @@ module FbGraph
4
4
  def noreply(options = {})
5
5
  members = FbGraph::Collection.new(get(options.merge(:connection => 'noreply')))
6
6
  members.map! do |member|
7
- User.new(member.delete(:id), member)
7
+ User.new(member.delete(:id), member.merge(
8
+ :access_token => options[:access_token] || self.access_token
9
+ ))
8
10
  end
9
11
  end
10
12
  end
@@ -4,13 +4,17 @@ module FbGraph
4
4
  def notes(options = {})
5
5
  notes = FbGraph::Collection.new(get(options.merge(:connection => 'notes')))
6
6
  notes.map! do |note|
7
- Note.new(note.delete(:id), note)
7
+ Note.new(note.delete(:id), note.merge(
8
+ :access_token => options[:access_token] || self.access_token
9
+ ))
8
10
  end
9
11
  end
10
12
 
11
13
  def note!(options = {})
12
14
  note = post(options.merge(:connection => 'notes'))
13
- Note.new(note.delete(:id), options.merge(note))
15
+ Note.new(note.delete(:id), options.merge(note).merge(
16
+ :access_token => options[:access_token] || self.access_token
17
+ ))
14
18
  end
15
19
  end
16
20
  end
@@ -4,13 +4,17 @@ module FbGraph
4
4
  def photos(options = {})
5
5
  photos = FbGraph::Collection.new(get(options.merge(:connection => 'photos')))
6
6
  photos.map! do |photo|
7
- Photo.new(photo.delete(:id), photo)
7
+ Photo.new(photo.delete(:id), photo.merge(
8
+ :access_token => options[:access_token] || self.access_token
9
+ ))
8
10
  end
9
11
  end
10
12
 
11
13
  def photo!(options = {})
12
14
  photo = post(options.merge(:connection => 'photos'))
13
- Photo.new(photo.delete(:id), options.merge(photo))
15
+ Photo.new(photo.delete(:id), options.merge(photo).merge(
16
+ :access_token => options[:access_token] || self.access_token
17
+ ))
14
18
  end
15
19
  end
16
20
  end
@@ -4,7 +4,9 @@ module FbGraph
4
4
  def posts(options = {})
5
5
  posts = FbGraph::Collection.new(get(options.merge(:connection => 'posts')))
6
6
  posts.map! do |post|
7
- Post.new(post.delete(:id), post)
7
+ Post.new(post.delete(:id), post.merge(
8
+ :access_token => options[:access_token] || self.access_token
9
+ ))
8
10
  end
9
11
  end
10
12
  end
@@ -4,7 +4,9 @@ module FbGraph
4
4
  def statuses(options = {})
5
5
  statuses = FbGraph::Collection.new(get(options.merge(:connection => 'statuses')))
6
6
  statuses.map! do |status|
7
- Status.new(status.delete(:id), status)
7
+ Status.new(status.delete(:id), status.merge(
8
+ :access_token => options[:access_token] || self.access_token
9
+ ))
8
10
  end
9
11
  end
10
12
  end
@@ -4,7 +4,9 @@ module FbGraph
4
4
  def tagged(options = {})
5
5
  posts = FbGraph::Collection.new(get(options.merge(:connection => 'tagged')))
6
6
  posts.map! do |post|
7
- Post.new(post.delete(:id), post)
7
+ Post.new(post.delete(:id), post.merge(
8
+ :access_token => options[:access_token] || self.access_token
9
+ ))
8
10
  end
9
11
  end
10
12
  end
@@ -4,7 +4,9 @@ module FbGraph
4
4
  def television(options = {})
5
5
  television = FbGraph::Collection.new(get(options.merge(:connection => 'television')))
6
6
  television.map! do |_television_|
7
- Page.new(_television_.delete(:id), _television_)
7
+ Page.new(_television_.delete(:id), _television_.merge(
8
+ :access_token => options[:access_token] || self.access_token
9
+ ))
8
10
  end
9
11
  end
10
12
  end
@@ -4,7 +4,9 @@ module FbGraph
4
4
  def videos(options = {})
5
5
  videos = FbGraph::Collection.new(get(options.merge(:connection => 'videos')))
6
6
  videos.map! do |video|
7
- Video.new(video.delete(:id), video)
7
+ Video.new(video.delete(:id), video.merge(
8
+ :access_token => options[:access_token] || self.access_token
9
+ ))
8
10
  end
9
11
  end
10
12
  end
@@ -20,6 +20,7 @@ context 'when included by FbGraph::User' do
20
20
  activities = FbGraph::User.new('arjun', :access_token => 'access_token').activities
21
21
  activities.first.should == FbGraph::Page.new(
22
22
  '378209722137',
23
+ :access_token => 'access_token',
23
24
  :name => 'Doing Things at the Last Minute',
24
25
  :category => '活動'
25
26
  )
@@ -20,6 +20,7 @@ context 'when included by FbGraph::User' do
20
20
  albums = FbGraph::User.new('matake', :access_token => 'access_token').albums
21
21
  albums.first.should == FbGraph::Album.new(
22
22
  '19351532276',
23
+ :access_token => 'access_token',
23
24
  :from => {
24
25
  :id => '579612276',
25
26
  :name => 'Nov Matake'
@@ -48,6 +49,7 @@ context 'when included by FbGraph::User' do
48
49
  :message => 'test test test'
49
50
  )
50
51
  album.identifier.should == 401096332276
52
+ album.access_token.should == 'valid'
51
53
  album.name.should == 'FbGraph test'
52
54
  album.description.should == 'test test test'
53
55
  end
@@ -20,6 +20,7 @@ describe FbGraph::Connections::Books, '#books' do
20
20
  books = FbGraph::User.new('matake', :access_token => 'access_token').books
21
21
  books.first.should == FbGraph::Page.new(
22
22
  '102253616477130',
23
+ :access_token => 'access_token',
23
24
  :name => 'Momo Michael Ende',
24
25
  :category => 'Unknown'
25
26
  )
@@ -39,7 +39,9 @@ context 'when included by FbGraph::Post' do
39
39
  it 'should return generated comment' do
40
40
  comment = FbGraph::Post.new('12345', :access_token => 'valid').comment!(:message => 'hello')
41
41
  comment.identifier.should == '117513961602338_119401698085884_535271'
42
+ comment.access_token.should == 'valid'
42
43
  comment.message.should == 'hello'
44
+ comment.access_token.should == 'valid'
43
45
  end
44
46
  end
45
47
  end
@@ -20,6 +20,7 @@ context 'when included by FbGraph::User' do
20
20
  events = FbGraph::User.new('matake', :access_token => 'access_token').events
21
21
  events.first.should == FbGraph::Event.new(
22
22
  '116600818359630',
23
+ :access_token => 'access_token',
23
24
  :name => 'The Loyal We @ Rainy Day Bookstore and Cafe',
24
25
  :start_time => '2010-04-29T01:30:00+0000',
25
26
  :end_time => '2010-04-29T04:30:00+0000',
@@ -45,6 +46,7 @@ context 'when included by FbGraph::User' do
45
46
  :end_time => Time.utc(2010, 5, 11, 12, 0, 0).to_i
46
47
  )
47
48
  event.name.should == 'FbGraph test event'
49
+ event.access_token.should == 'valid'
48
50
  event.start_time.should == Time.utc(2010, 5, 11, 10, 0, 0)
49
51
  event.end_time.should == Time.utc(2010, 5, 11, 12, 0, 0)
50
52
  end
@@ -32,6 +32,32 @@ context 'when included by FbGraph::User' do
32
32
  end
33
33
  end
34
34
  end
35
+
36
+ context 'when access_token is given' do
37
+ it 'should return posts on the user\'s wall as FbGraph::Post' do
38
+ posts = FbGraph::User.new('arjun').feed(:access_token => 'access_token')
39
+ posts.first.should == FbGraph::Post.new(
40
+ '7901103_121392141207495',
41
+ :access_token => 'access_token',
42
+ :from => {
43
+ :id => '7901103',
44
+ :name => 'Arjun Banker'
45
+ },
46
+ :picture => 'http://external.ak.fbcdn.net/safe_image.php?d=d2cc5beedaa401ba54eccc9014647285&w=130&h=130&url=http%3A%2F%2Fimages.ted.com%2Fimages%2Fted%2F269_389x292.jpg',
47
+ :link => 'http://www.ted.com/talks/wade_davis_on_endangered_cultures.html',
48
+ :name => 'Wade Davis on endangered cultures | Video on TED.com',
49
+ :caption => 'www.ted.com',
50
+ :description => 'TED Talks With stunning photos and stories, National Geographic Explorer Wade Davis celebrates the extraordinary diversity of the world\'s indigenous cultures, which are disappearing from the planet at an alarming rate.',
51
+ :icon => 'http://static.ak.fbcdn.net/rsrc.php/z9XZ8/hash/976ulj6z.gif',
52
+ :created_time => '2010-04-25T04:05:32+0000',
53
+ :updated_time => '2010-04-25T04:05:32+0000',
54
+ :likes => 1
55
+ )
56
+ posts.each do |post|
57
+ post.should be_instance_of(FbGraph::Post)
58
+ end
59
+ end
60
+ end
35
61
  end
36
62
 
37
63
  describe FbGraph::Connections::Feed, '#feed!' do
@@ -68,6 +94,7 @@ context 'when included by FbGraph::User' do
68
94
  post = FbGraph::User.new('matake', :access_token => 'valid').feed!(:message => 'hello')
69
95
  post.identifier.should == '579612276_401071652276'
70
96
  post.message.should == 'hello'
97
+ post.access_token.should == 'valid'
71
98
  end
72
99
  end
73
100
  end
@@ -38,6 +38,7 @@ describe FbGraph::Connections::Friends, '#friends' do
38
38
  users = FbGraph::User.new('me', :access_token => 'access_token').friends
39
39
  users.first.should == FbGraph::User.new(
40
40
  '6401',
41
+ :access_token => 'access_token',
41
42
  :name => 'Kirk McMurray'
42
43
  )
43
44
  users.each do |user|
@@ -20,6 +20,7 @@ describe FbGraph::Connections::Groups, '#groups' do
20
20
  groups = FbGraph::User.new('matake', :access_token => 'access_token').groups
21
21
  groups.first.should == FbGraph::Group.new(
22
22
  '115286585902',
23
+ :access_token => 'access_token',
23
24
  :name => 'iPhone 3G S'
24
25
  )
25
26
  groups.each do |group|
@@ -38,6 +38,7 @@ describe FbGraph::Connections::Home, '#home' do
38
38
  posts = FbGraph::User.new('me', :access_token => 'access_token').home
39
39
  posts.first.should == FbGraph::Post.new(
40
40
  '634033380_112599768777073',
41
+ :access_token => 'access_token',
41
42
  :from => {
42
43
  :id => '634033380',
43
44
  :name => 'nishikokura hironobu'
@@ -20,6 +20,7 @@ context 'when included by FbGraph::User' do
20
20
  likes = FbGraph::User.new('arjun', :access_token => 'access_token').likes
21
21
  likes.first.should == FbGraph::Page.new(
22
22
  '378209722137',
23
+ :access_token => 'access_token',
23
24
  :name => 'Doing Things at the Last Minute',
24
25
  :category => '活動'
25
26
  )
@@ -27,6 +27,7 @@ context 'when included by FbGraph::User' do
27
27
  link.identifier.should == 120765121284251
28
28
  link.link.should == 'http://github.com/nov/fb_graph'
29
29
  link.message.should == 'A Ruby wrapper for Facebook Graph API.'
30
+ link.access_token.should == 'valid'
30
31
  end
31
32
  end
32
33
  end
@@ -26,6 +26,7 @@ context 'when included by FbGraph::Page' do
26
26
  note.identifier.should == 396664845100
27
27
  note.subject.should == 'test'
28
28
  note.message.should == 'hello'
29
+ note.access_token.should == 'valid'
29
30
  end
30
31
  end
31
32
  end
@@ -25,5 +25,6 @@ describe FbGraph::Connections::Photos, '#photo!' do
25
25
  )
26
26
  photo.identifier.should == 401111132276
27
27
  photo.name.should == 'Hello, where is photo?'
28
+ photo.access_token.should == 'valid'
28
29
  end
29
30
  end
@@ -21,6 +21,7 @@ describe FbGraph::Connections::Statuses, '#statuses' do
21
21
  statuses = FbGraph::User.new('arjun', :access_token => 'access_token').statuses
22
22
  statuses.first.should == FbGraph::Status.new(
23
23
  '113559395341627',
24
+ :access_token => 'access_token',
24
25
  :from => {
25
26
  :id => '7901103',
26
27
  :name => 'Arjun Banker'
@@ -54,6 +55,7 @@ describe FbGraph::Connections::Statuses, '#statuses' do
54
55
  statuses = FbGraph::Page.new('platform', :access_token => 'access_token').statuses
55
56
  statuses.first.should == FbGraph::Status.new(
56
57
  '111081598927600',
58
+ :access_token => 'access_token',
57
59
  :from => {
58
60
  :id => '19292868552',
59
61
  :name => 'Facebook Platform',
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 2
8
- - 2
9
- version: 0.2.2
7
+ - 3
8
+ - 0
9
+ version: 0.3.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - nov matake