Skip to content

Commit

Permalink
Ignored loading CoreAssertions in test runner
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Sep 14, 2021
1 parent 7e50937 commit 2fd5401
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 17 deletions.
2 changes: 2 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ end

require "rake/testtask"
Rake::TestTask.new(:test) do |t|
t.libs << "test/lib"
t.ruby_opts << "-rhelper"
t.test_files = FileList["test/**/test_*.rb"]
end

Expand Down
5 changes: 5 additions & 0 deletions test/lib/helper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
require 'test/unit'
# for standalone test suite on ruby/logger
require_relative 'core_assertions'

Test::Unit::TestCase.include Test::Unit::CoreAssertions
13 changes: 0 additions & 13 deletions test/logger/helper.rb

This file was deleted.

2 changes: 1 addition & 1 deletion test/logger/test_logdevice.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# coding: US-ASCII
# frozen_string_literal: false
require_relative 'helper'
require 'logger'
require 'tempfile'
require 'tmpdir'

Expand Down
2 changes: 1 addition & 1 deletion test/logger/test_logger.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# coding: US-ASCII
# frozen_string_literal: false
require_relative 'helper'
require 'logger'
require 'tempfile'

class TestLogger < Test::Unit::TestCase
Expand Down
2 changes: 1 addition & 1 deletion test/logger/test_logperiod.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# coding: US-ASCII
# frozen_string_literal: false
require_relative 'helper'
require 'logger'
require 'time'

class TestLogPeriod < Test::Unit::TestCase
Expand Down
2 changes: 1 addition & 1 deletion test/logger/test_severity.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# coding: US-ASCII
# frozen_string_literal: false
require_relative 'helper'
require 'logger'

class TestLoggerSeverity < Test::Unit::TestCase
def test_enum
Expand Down

0 comments on commit 2fd5401

Please sign in to comment.