Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/redis.rb')
-rw-r--r--spec/support/redis.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/support/redis.rb b/spec/support/redis.rb
index 6d313c8aa16..d5ae0bf1582 100644
--- a/spec/support/redis.rb
+++ b/spec/support/redis.rb
@@ -25,4 +25,10 @@ RSpec.configure do |config|
instance_class.with(&:flushdb)
end
end
+
+ config.before(:each, :use_null_store_as_repository_cache) do |example|
+ null_store = ActiveSupport::Cache::NullStore.new
+
+ allow(Gitlab::Redis::RepositoryCache).to receive(:cache_store).and_return(null_store)
+ end
end