2019-08-22 06:57:44 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-07-10 23:35:47 -04:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-06-24 14:09:03 -04:00
|
|
|
RSpec.describe Gitlab::Redis::Cache do
|
2021-06-01 14:10:04 -04:00
|
|
|
let(:instance_specific_config_file) { "config/redis.cache.yml" }
|
2017-07-10 23:35:47 -04:00
|
|
|
let(:environment_config_file_name) { "GITLAB_REDIS_CACHE_CONFIG_FILE" }
|
|
|
|
|
|
|
|
include_examples "redis_shared_examples"
|
2021-06-04 08:10:17 -04:00
|
|
|
|
|
|
|
describe '#raw_config_hash' do
|
|
|
|
it 'has a legacy default URL' do
|
|
|
|
expect(subject).to receive(:fetch_config) { false }
|
|
|
|
|
|
|
|
expect(subject.send(:raw_config_hash)).to eq(url: 'redis://localhost:6380' )
|
|
|
|
end
|
|
|
|
end
|
2017-07-10 23:35:47 -04:00
|
|
|
end
|