From 70d8b809465e83c394b0ac09766f5b71124a62e3 Mon Sep 17 00:00:00 2001 From: Hunter Gillane Date: Sat, 31 Jul 2010 19:25:25 -0700 Subject: [PATCH] removed rate limiting stuff --- public/javascripts/TwitterApi.js | 1 - spec/javascripts/TwitterApiSpec.js | 18 ------------------ 2 files changed, 19 deletions(-) diff --git a/public/javascripts/TwitterApi.js b/public/javascripts/TwitterApi.js index e3d9623..9929fb7 100644 --- a/public/javascripts/TwitterApi.js +++ b/public/javascripts/TwitterApi.js @@ -19,7 +19,6 @@ TwitterApi.prototype.search = function(query, callbacks) { }, onFailure: callbacks.onFailure, onComplete: callbacks.onComplete, - on403: callbacks.onRateLimit, on503: callbacks.onFailWhale }); } diff --git a/spec/javascripts/TwitterApiSpec.js b/spec/javascripts/TwitterApiSpec.js index 656491f..0434ada 100644 --- a/spec/javascripts/TwitterApiSpec.js +++ b/spec/javascripts/TwitterApiSpec.js @@ -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);