Skip to content

Commit

Permalink
Update docs and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
treble37 committed Jan 25, 2017
1 parent 7ba60ba commit 38f06de
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
11 changes: 7 additions & 4 deletions lib/funky/page.rb
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
module Funky
class Page < GraphRootNode

# @return [String] The name of the Facebook Page. For example, for
# www.facebook.com/platform the name is 'Facebook For Developers'.
# @example
# For example, for www.facebook.com/platform the username is 'platform'.
# @see https://developers.facebook.com/docs/graph-api/reference/page/
# @return [String] The alias of the Facebook Page.
def username
data[:username]
end

# @return [String] The alias of the Facebook Page. For example, for
# www.facebook.com/platform the username is 'platform'.
# @example
# For example, for www.facebook.com/platform the name is
# 'Facebook For Developers'.
# @see https://developers.facebook.com/docs/graph-api/reference/page/
# @return [String] The name of the Facebook Page.
def name
data[:name]
end
Expand Down
2 changes: 1 addition & 1 deletion spec/pages/page_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
end
end

context 'given an error that causes a Funky::ConnectionError' do
context 'given a connection error' do
let(:page_ids) { [existing_page_id, another_page_id] }
let(:socket_error) { SocketError.new }

Expand Down
2 changes: 1 addition & 1 deletion spec/videos/video_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
end
end

context 'given an error that causes a Funky::ConnectionError' do
context 'given a connection error' do
let(:video_ids) { [existing_video_id, another_video_id] }
let(:socket_error) { SocketError.new }

Expand Down

0 comments on commit 38f06de

Please sign in to comment.