summaryrefslogtreecommitdiff
path: root/spec/support/redis/redis_helpers.rb
blob: 2c5ceb2f09ea7195ed73c8b05fb4669b80496d9b (plain)
1
2
3
4
5
6
7
8
9
# 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