1
0
Fork 0
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:
Nobuyoshi Nakada 2021-10-15 18:47:17 +09:00
parent 027a3379d6
commit 370fff98ce
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6
3 changed files with 10 additions and 10 deletions

View file

@ -2,9 +2,9 @@
require_relative '../envutil'
require_relative '../colorize'
require 'test/unit/testcase'
require_relative '../leakchecker'
require_relative '../test/unit/testcase'
require 'optparse'
require "leakchecker"
# See Test::Unit
module Test

View file

@ -1,12 +1,12 @@
# frozen_string_literal: true
$LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../.."
require 'test/unit'
$LOAD_PATH.unshift "#{__dir__}/../.."
require_relative '../../test/unit'
require "profile_test_all" if ENV.key?('RUBY_TEST_ALL_PROFILE')
require "tracepointchecker"
require "zombie_hunter"
require "iseq_loader_checker"
require "gc_checker"
require_relative '../../profile_test_all' if ENV.key?('RUBY_TEST_ALL_PROFILE')
require_relative '../../tracepointchecker'
require_relative '../../zombie_hunter'
require_relative '../../iseq_loader_checker'
require_relative '../../gc_checker'
module Test
module Unit

View file

@ -1,5 +1,5 @@
# frozen_string_literal: true
require 'test/unit/assertions'
require_relative 'assertions'
require_relative '../../core_assertions'
module Test