1
0
Fork 0
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:
Hiroshi SHIBATA 2019-12-09 19:16:51 +09:00
parent 4b36832ba6
commit 1943279426
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2

View file

@ -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