1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/logger] Ignored loading CoreAssertions in test runner

https://github.com/ruby/logger/commit/2fd5401ad6
This commit is contained in:
Hiroshi SHIBATA 2021-09-14 20:53:07 +09:00
parent f77f9b9328
commit 8f6b42e0cb
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2
5 changed files with 4 additions and 17 deletions

View file

@ -1,13 +0,0 @@
ROOT_DIR = File.dirname(__dir__)
$LOAD_PATH.unshift File.join(ROOT_DIR, 'lib') # to use logger in this repo instead of ruby built-in logger
$LOAD_PATH.unshift File.join(ROOT_DIR, 'test', 'lib') # to use custom test-unit in this repo
require 'logger'
require 'test/unit'
begin
# for standalone test suite on ruby/logger
require 'core_assertions'
Test::Unit::TestCase.include Test::Unit::CoreAssertions
rescue LoadError
end

View file

@ -1,6 +1,6 @@
# coding: US-ASCII
# frozen_string_literal: false
require_relative 'helper'
require 'logger'
require 'tempfile'
require 'tmpdir'

View file

@ -1,6 +1,6 @@
# coding: US-ASCII
# frozen_string_literal: false
require_relative 'helper'
require 'logger'
require 'tempfile'
class TestLogger < Test::Unit::TestCase

View file

@ -1,6 +1,6 @@
# coding: US-ASCII
# frozen_string_literal: false
require_relative 'helper'
require 'logger'
require 'time'
class TestLogPeriod < Test::Unit::TestCase

View file

@ -1,6 +1,6 @@
# coding: US-ASCII
# frozen_string_literal: false
require_relative 'helper'
require 'logger'
class TestLoggerSeverity < Test::Unit::TestCase
def test_enum