Pull out https/hostname setup for request specs to shared config (#31622)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user