Set Redis URL that will not be reused in specs (#8227)

This commit is contained in:
Molly Struve 2020-06-01 16:46:23 -05:00 committed by GitHub
parent eda0a78d47
commit fe96375110
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -59,7 +59,7 @@ RSpec.describe "HealthCheck", type: :request do
end
it "returns json failure if connection check fails" do
ENV["REDIS_URL"] = "redis://redis:6379"
ENV["REDIS_SESSIONS_URL"] = "redis://redis:6379"
redis_obj = Redis.new
allow(Redis).to receive(:new).and_return(redis_obj)
allow(redis_obj).to receive(:ping).and_return("fail")