Add specs for RemoteStorageAuthorization model
This commit is contained in:
8
spec/support/helpers/redis_helper.rb
Normal file
8
spec/support/helpers/redis_helper.rb
Normal file
@@ -0,0 +1,8 @@
|
||||
def redis_rs
|
||||
@redis_rs ||= Redis.new(url: Setting.rs_redis_url)
|
||||
end
|
||||
|
||||
def redis_rs_delete_keys(pattern)
|
||||
keys = redis_rs.keys(pattern)
|
||||
redis_rs.del(*keys)
|
||||
end
|
||||
Reference in New Issue
Block a user