mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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:
@@ -14,21 +14,15 @@ end
|
||||
|
||||
require 'rubygems'
|
||||
require 'rbtrace'
|
||||
|
||||
require 'pry'
|
||||
require 'pry-byebug'
|
||||
require 'pry-rails'
|
||||
|
||||
# Loading more in this block will cause your tests to run faster. However,
|
||||
# if you change any configuration or code from libraries loaded here, you'll
|
||||
# need to restart spork for it take effect.
|
||||
require 'fabrication'
|
||||
require 'mocha/api'
|
||||
require 'certified'
|
||||
require 'webmock/rspec'
|
||||
|
||||
class RspecErrorTracker
|
||||
|
||||
def self.last_exception=(ex)
|
||||
@ex = ex
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user