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 d00d6562966..6d313c8aa16 100644
--- a/spec/support/redis.rb
+++ b/spec/support/redis.rb
@@ -19,4 +19,10 @@ RSpec.configure do |config|
public_send("redis_#{underscored_name}_cleanup!")
end
end
+
+ config.before(:suite) do
+ Gitlab::Redis::ALL_CLASSES.each do |instance_class|
+ instance_class.with(&:flushdb)
+ end
+ end
end