mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: s/\$redis/Discourse\.redis (#8431)
This commit also adds a rubocop rule to prevent global variables.
This commit is contained in:
@@ -198,7 +198,7 @@ describe PostValidator do
|
||||
end
|
||||
|
||||
after do
|
||||
$redis.del(@key)
|
||||
Discourse.redis.del(@key)
|
||||
end
|
||||
|
||||
context "post is unique" do
|
||||
|
||||
Reference in New Issue
Block a user