mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
DEV: s/\$redis/Discourse\.redis (#8431)
This commit also adds a rubocop rule to prevent global variables.
This commit is contained in:
@ -35,7 +35,7 @@ RSpec.describe Admin::BackupsController do
|
||||
end
|
||||
|
||||
after do
|
||||
$redis.flushall
|
||||
Discourse.redis.flushall
|
||||
|
||||
@paths&.each { |path| File.delete(path) if File.exists?(path) }
|
||||
@paths = nil
|
||||
|
Reference in New Issue
Block a user