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

[rubygems/rubygems] More portable PATH edition

https://github.com/rubygems/rubygems/commit/a6d50afad0
This commit is contained in:
David Rodríguez 2020-04-16 21:01:58 +02:00 committed by Hiroshi SHIBATA
parent 22ee047f73
commit 414b1485d6
Notes: git 2020-06-18 19:15:00 +09:00

View file

@ -344,7 +344,7 @@ module Spec
end
def with_path_added(path)
with_path_as(path.to_s + ":" + ENV["PATH"]) do
with_path_as([path.to_s, ENV["PATH"]].join(File::PATH_SEPARATOR)) do
yield
end
end