зеркало из https://github.com/github/ernicorn.git
Get rid of auto_start entirely
This commit is contained in:
Родитель
9b1d3f1dec
Коммит
6cd5da3bf5
|
@ -6,7 +6,6 @@ module Ernicorn
|
|||
|
||||
class << self
|
||||
attr_accessor :mods, :current_mod, :log
|
||||
attr_accessor :auto_start
|
||||
attr_accessor :count, :virgin_procline
|
||||
end
|
||||
|
||||
|
@ -16,7 +15,6 @@ module Ernicorn
|
|||
self.current_mod = nil
|
||||
self.log = Logger.new(STDOUT)
|
||||
self.log.level = Logger::FATAL
|
||||
self.auto_start = true
|
||||
|
||||
# Record a module.
|
||||
# +name+ is the module Symbol
|
||||
|
@ -246,7 +244,3 @@ end
|
|||
def loglevel(level)
|
||||
Ernicorn.loglevel(level)
|
||||
end
|
||||
|
||||
at_exit do
|
||||
Ernicorn.start if Ernicorn.auto_start && !defined?(Ernicorn)
|
||||
end
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
require 'test/unit'
|
||||
require 'shoulda'
|
||||
require 'ernicorn'
|
||||
Ernicorn.auto_start = false
|
||||
|
|
Загрузка…
Ссылка в новой задаче