sferik/t — pull request #45 by jphpsf (2012-05-23 05:06:30+00:00)
Title: Fix max collect id when API returns less results than expected

The Twitter API returns inconsistent count of tweets and often the API response includes less tweets than the requested count.

This patch solves the issue by querying the Twitter API in a loop until the expected number of results is reached.

The code change is fairly simple: I just had to tweak the `collect_with_number` method to keep track of the number of tweets returned by the API. However, I had to fix many tests that got broken because of that change of behavior. One annoying side affect was that the fixtures included less than 20 tweets so a lot of the tests with the default count of 20 started failing. For that case, I added a few tweets to the fixture to get the count to 20.