removed rate limiting stuff

This commit is contained in:
Hunter Gillane 2010-07-31 19:25:25 -07:00
parent 14878cf975
commit 70d8b80946
2 changed files with 0 additions and 19 deletions

View File

@ -19,7 +19,6 @@ TwitterApi.prototype.search = function(query, callbacks) {
},
onFailure: callbacks.onFailure,
onComplete: callbacks.onComplete,
on403: callbacks.onRateLimit,
on503: callbacks.onFailWhale
});
}

View File

@ -65,24 +65,6 @@ describe("TwitterApi#search", function(){
});
});
describe("on rate limit", function(){
beforeEach(function(){
request.response(TestResponses.search.rateLimitReached);
});
it("calls onRateLimit", function(){
expect(onRateLimit).toHaveBeenCalled();
});
it("does not call onSuccess", function(){
expect(onSuccess).not.toHaveBeenCalled();
});
it("calls onComplete", function(){
expect(onComplete).toHaveBeenCalled();
});
});
describe("on fail whale", function(){
beforeEach(function(){
request.response(TestResponses.search.failWhale);