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

Use relative path in ruby core repository

This commit is contained in:
Hiroshi SHIBATA 2020-05-11 22:00:20 +09:00
parent 143872bf98
commit aecbb78517
Notes: git 2020-05-13 07:55:13 +09:00

View file

@ -233,7 +233,7 @@ RSpec.describe "The library itself" do
]
files_to_require = lib_tracked_files.grep(/\.rb$/) - exclusions
files_to_require.reject! {|f| f.start_with?("lib/bundler/vendor") }
files_to_require.map! {|f| File.expand_path("../#{f}", __dir__) }
files_to_require.map! {|f| File.expand_path(root.join("#{f}"), __dir__) }
sys_exec!("ruby -w") do |input, _, _|
files_to_require.each do |f|
input.puts "require '#{f}'"