Was butting up against Twitter’s rate limit while running rspec spec
:
1) CompanyController GET 'index' should be successful
Failure/Error: get 'index'
Twitter::BadRequest:
GET https://api.twitter.com/1/statuses/user_timeline.json?count=20&screen_name=cfeduke: 400: Rate limit exceeded. Clients may not make more than 150 requests per hour.
Fixed by adding:
Twitter.stub(:user_timeline) { [ ] }
above line 15 of company_controller_spec.rb
.