mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Prefer require_relative
This commit is contained in:
parent
027a3379d6
commit
370fff98ce
3 changed files with 10 additions and 10 deletions
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
require_relative '../envutil'
|
require_relative '../envutil'
|
||||||
require_relative '../colorize'
|
require_relative '../colorize'
|
||||||
require 'test/unit/testcase'
|
require_relative '../leakchecker'
|
||||||
|
require_relative '../test/unit/testcase'
|
||||||
require 'optparse'
|
require 'optparse'
|
||||||
require "leakchecker"
|
|
||||||
|
|
||||||
# See Test::Unit
|
# See Test::Unit
|
||||||
module Test
|
module Test
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
$LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../.."
|
$LOAD_PATH.unshift "#{__dir__}/../.."
|
||||||
require 'test/unit'
|
require_relative '../../test/unit'
|
||||||
|
|
||||||
require "profile_test_all" if ENV.key?('RUBY_TEST_ALL_PROFILE')
|
require_relative '../../profile_test_all' if ENV.key?('RUBY_TEST_ALL_PROFILE')
|
||||||
require "tracepointchecker"
|
require_relative '../../tracepointchecker'
|
||||||
require "zombie_hunter"
|
require_relative '../../zombie_hunter'
|
||||||
require "iseq_loader_checker"
|
require_relative '../../iseq_loader_checker'
|
||||||
require "gc_checker"
|
require_relative '../../gc_checker'
|
||||||
|
|
||||||
module Test
|
module Test
|
||||||
module Unit
|
module Unit
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
require 'test/unit/assertions'
|
require_relative 'assertions'
|
||||||
require_relative '../../core_assertions'
|
require_relative '../../core_assertions'
|
||||||
|
|
||||||
module Test
|
module Test
|
||||||
|
|
Loading…
Reference in a new issue