mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-30 10:49:03 -04:00
11 lines
508 B
Ruby
11 lines
508 B
Ruby
# frozen_string_literal: true
|
|
|
|
# Rack::Attack counts requests per IP in process memory, and every spec is the
|
|
# same IP. Left on, the "excessive crawling" ban (500 page loads) kicks in part
|
|
# way through a long run and later requests get "Forbidden". Which specs those
|
|
# are depended on the random order, and on whether spec/requests/rack_attack_spec.rb
|
|
# had already switched it off. That spec turns it on for itself.
|
|
RSpec.configure do |config|
|
|
config.before(:suite) { Rack::Attack.enabled = false }
|
|
end
|