зеркало из https://github.com/github/ruby.git
Added workaround for CoreAssertions used by ruby/logger.
This commit is contained in:
Родитель
4b36832ba6
Коммит
1943279426
|
@ -3,6 +3,11 @@ $LOAD_PATH.unshift File.join(ROOT_DIR, 'lib') # to use logger in this repo inste
|
|||
$LOAD_PATH.unshift File.join(ROOT_DIR, 'test', 'lib') # to use custom test-unit in this repo
|
||||
require 'logger'
|
||||
require 'test/unit'
|
||||
require 'core_assertions'
|
||||
|
||||
Test::Unit::TestCase.include Test::Unit::CoreAssertions
|
||||
begin
|
||||
# for standalone test suite on ruby/logger
|
||||
require 'core_assertions'
|
||||
|
||||
Test::Unit::TestCase.include Test::Unit::CoreAssertions
|
||||
rescue LoadError
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче