8000 Added workaround for CoreAssertions used by ruby/logger. · github/ruby@1943279 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1943279

Browse files
committed
Added workaround for CoreAssertions used by ruby/logger.
1 parent 4b36832 commit 1943279

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

test/logger/helper.rb

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
$LOAD_PATH.unshift File.join(ROOT_DIR, 'test', 'lib') # to use custom test-unit in this repo
44
require 'logger'
55
require 'test/unit'
6-
require 'core_assertions'
76

8-
Test::Unit::TestCase.include Test::Unit::CoreAssertions
7+
begin
8+
# for standalone test suite on ruby/logger
9+
require 'core_assertions'
10+
11+
Test::Unit::TestCase.include Test::Unit::CoreAssertions
12+
rescue LoadError
13+
end

0 commit comments

Comments
 (0)
0