mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 21:25:24 +08:00
DEV: s/\$redis/Discourse\.redis (#8431)
This commit also adds a rubocop rule to prevent global variables.
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
require "rails_helper"
|
||||
|
||||
describe WebhooksController do
|
||||
before { $redis.flushall }
|
||||
before { Discourse.redis.flushall }
|
||||
|
||||
let(:email) { "em@il.com" }
|
||||
let(:message_id) { "12345@il.com" }
|
||||
|
Reference in New Issue
Block a user