debian-mirror-gitlab/spec/support/helpers/redis_helpers.rb
2023-06-20 00:43:36 +05:30

9 lines
239 B
Ruby

# frozen_string_literal: true
module RedisHelpers
Gitlab::Redis::ALL_CLASSES.each do |instance_class|
define_method("redis_#{instance_class.store_name.underscore}_cleanup!") do
instance_class.with(&:flushdb)
end
end
end