mirror of
https://github.com/discourse/discourse.git
synced 2025-06-02 04:08:41 +08:00
DEV: Avoid $
globals (#15453)
Also: * Remove an unused method (#fill_email) * Replace a method that was used just once (#generate_username) with `SecureRandom.alphanumeric` * Remove an obsolete dev puma `tmp/restart` file logic
This commit is contained in:
@ -145,7 +145,7 @@ task "themes:isolated_test" => :environment do |t, args|
|
||||
|
||||
redis = TemporaryRedis.new
|
||||
redis.start
|
||||
$redis = redis.instance # rubocop:disable Style/GlobalVars
|
||||
Discourse.redis = redis.instance
|
||||
db = TemporaryDb.new
|
||||
db.start
|
||||
db.migrate
|
||||
|
Reference in New Issue
Block a user