summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2020-05-11 22:00:20 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-05-13 07:54:37 +0900
commitaecbb78517ed1ae2c6c5d118b569fad5993b83e3 (patch)
treee859670cc423df52f48fb2aea225db61a84000b6 /spec
parent143872bf98b01926562839fbd7e352da588d62bd (diff)
Use relative path in ruby core repository
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3086
Diffstat (limited to 'spec')
-rw-r--r--spec/bundler/quality_spec.rb2
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}'"