0
0
Fork 0

Pull out https/hostname setup for request specs to shared config (#31622)

This commit is contained in:
Matt Jankowski 2024-09-03 11:28:57 -04:00 committed by GitHub
parent dc2f67f69b
commit ef4920c6c9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 21 additions and 11 deletions

View file

@ -142,6 +142,12 @@ RSpec.configure do |config|
end
end
config.before :each, type: :request do
# Use https and configured hostname in request spec requests
integration_session.https!
host! Rails.configuration.x.local_domain
end
config.after do
Rails.cache.clear
redis.del(redis.keys)