diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-05-11 22:00:20 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-05-13 07:54:37 +0900 |
commit | aecbb78517ed1ae2c6c5d118b569fad5993b83e3 (patch) | |
tree | e859670cc423df52f48fb2aea225db61a84000b6 | |
parent | 143872bf98b01926562839fbd7e352da588d62bd (diff) | |
download | ruby-aecbb78517ed1ae2c6c5d118b569fad5993b83e3.tar.gz |
Use relative path in ruby core repository
-rw-r--r-- | spec/bundler/quality_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/bundler/quality_spec.rb b/spec/bundler/quality_spec.rb index 177eb505a1..3891de4738 100644 --- a/spec/bundler/quality_spec.rb +++ b/spec/bundler/quality_spec.rb @@ -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}'" |