# RSpec search\_spec.rb RateLimiter LimitExceeded problems

**URL:** <https://meta.discourse.org/t/rspec-search-spec-rb-ratelimiter-limitexceeded-problems/43707>\
**Category:** Development\
**Created:** [05.Май.2016 06:07:00 UTC](https://meta.discourse.org/t/rspec-search-spec-rb-ratelimiter-limitexceeded-problems/43707 "2016-05-05T06:07:00Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Post date:** [05.Май.2016 06:07:00 UTC](https://meta.discourse.org/t/rspec-search-spec-rb-ratelimiter-limitexceeded-problems/43707/1 "2016-05-05T06:07:00Z")

</div>

Continuing the discussion from [Search within topic is omitting results](https://meta.discourse.org/t/search-within-topic-is-omitting-results/42982/18):

I was getting things set up to do a PR - Pull Request - and figured it might be nice to include a test.

So I ran  
`bundle exec rspec spec/components/search_spec.rb`  
and got “38 examples, 30 failures” - Ouch!  
\* my change didn’t add any Fails, but then it didn’t remove any either :sadpanda:

After running

```plaintext
RAILS_ENV=development bundle exec rake db:migrate
RAILS_ENV=development bundle exec rspec spec/components/search_spec.rb

```

Much better, only 7 Fails. Some “expecting \_ got 5” etc. and some “RateLimiter LimitExceeded”

I was under the impression that testing was exempt from rate limits.

Am I missing a command option?

TBH, I’m not all that sure that I’ll be able to write some good test code, but I’d rather not be timed out between attempts.

---

_[View the full topic](https://meta.discourse.org/t/rspec-search-spec-rb-ratelimiter-limitexceeded-problems/43707)._
