Permalink
Browse files

Ensure that users are tested (@duncan)

  • Loading branch information...
1 parent 83e1ea1 commit 108019e83d745c23ebc92fc8a3f9f8c605b2e884 @sferik committed Sep 23, 2010
Showing with 5 additions and 1 deletion.
  1. +5 −1 test/twitter/base_test.rb
@@ -181,7 +181,11 @@ class BaseTest < Test::Unit::TestCase
should "be able to lookup users in bulk" do
stub_get("/users/lookup.json?screen_name=sferik&user_id=59593,774010", "users.json")
users = @twitter.users("sferik", 59593, 774010)
- users.first.screen_name.should == "sferik"
+ users.count.should == 3
+ usernames = users.map{|u| u['screen_name']}
+ usernames.should include 'sferik'
+ usernames.should include 'jm3'
+ usernames.should include 'jamiew'
end
should "be able to search people" do

0 comments on commit 108019e

Please sign in to comment.