diff options
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index a6fb172e79b..4f2021cdad4 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -182,11 +182,17 @@ RSpec.configure do |config| config.around(:each, :use_clean_rails_memory_store_caching) do |example| caching_store = Rails.cache + level1_store = Gitlab::Cache::Store.cache + level2_store = Gitlab::Cache::Store.main Rails.cache = ActiveSupport::Cache::MemoryStore.new + Gitlab::Cache::Store.cache = Rails.cache + Gitlab::Cache::Store.main = Rails.cache example.run Rails.cache = caching_store + Gitlab::Cache::Store.cache = level1_store + Gitlab::Cache::Store.main = level2_store end config.around(:each, :clean_gitlab_redis_cache) do |example| |