0
0
Fork 0

Add end-to-end (system) tests (#25461)

This commit is contained in:
Renaud Chaput 2023-07-28 23:09:49 +02:00 committed by GitHub
parent 8d5d707cc1
commit 4d1b67f664
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 298 additions and 5 deletions

View file

@ -199,7 +199,7 @@ module Mastodon
# We use our own middleware for this
config.public_file_server.enabled = false
config.middleware.use PublicFileServerMiddleware if Rails.env.development? || ENV['RAILS_SERVE_STATIC_FILES'] == 'true'
config.middleware.use PublicFileServerMiddleware if Rails.env.development? || Rails.env.test? || ENV['RAILS_SERVE_STATIC_FILES'] == 'true'
config.middleware.use Rack::Attack
config.middleware.use Mastodon::RackMiddleware