Skip to content

Commit

Permalink
Added test for @twitter.followers
Browse files Browse the repository at this point in the history
  • Loading branch information
rizwanreza authored and Wynn Netherland committed Nov 29, 2009
1 parent 9dcd340 commit 488a328
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions test/fixtures/followers.json

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion test/twitter/base_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ class BaseTest < Test::Unit::TestCase
@twitter.client.should respond_to(:post)
end
end

should "delegate get to the client" do
@access_token.expects(:get).with('/foo').returns(nil)
@twitter.get('/foo')
Expand Down Expand Up @@ -90,6 +89,13 @@ class BaseTest < Test::Unit::TestCase
hashes = @twitter.friends_timeline.map{ |s| s.hash }
hashes.should == @twitter.friends_timeline.map{ |s| s.hash }
end

should "be able to get followers' stauses" do
stub_get('/statuses/followers.json', 'followers.json')
followers = @twitter.followers
followers.should == @twitter.followers
end

end
end
end

0 comments on commit 488a328

Please sign in to comment.