mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Added workaround for CoreAssertions used by ruby/logger.
This commit is contained in:
parent
4b36832ba6
commit
1943279426
1 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue