Pull out https/hostname setup for request specs to shared config (#31622)
This commit is contained in:
parent
dc2f67f69b
commit
ef4920c6c9
5 changed files with 21 additions and 11 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue