Initial commit
This commit is contained in:
10
spec/support/redis_helper.rb
Normal file
10
spec/support/redis_helper.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
# encoding: UTF-8
|
||||
# frozen_string_literal: true
|
||||
|
||||
module RedisTestHelper
|
||||
def clear_redis
|
||||
Rails.cache.redis.flushall
|
||||
end
|
||||
end
|
||||
|
||||
RSpec.configure { |config| config.include RedisTestHelper }
|
||||
Reference in New Issue
Block a user