rack_attack.rb 365 B

12345678910111213
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. RSpec.configure do |config|
  3. # Rack attack has no rolling time periods. Make sure it works consistently
  4. # also in slow CI situations.
  5. # See https://github.com/rack/rack-attack/issues/601
  6. config.around(:each, :rack_attack) do |example|
  7. freeze_time
  8. example.run
  9. end
  10. end