Rack::Attack testing with Rspec


Let’s say you are using Rack::Attack. And if you not, you’d probably want to see it. Long story short, it’s a simple middelware for Rails to prevent some (most stupid) attacks to your site.

So if you are using it, you’d possibly want to test it. Just a small example of throttling (don’t mess up with trolling) tests: Continue reading