From 00a040dda3bd2955aa6f470578d639b3c4fc3220 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Sat, 4 Dec 2021 14:00:02 +0100 Subject: [rubygems/rubygems] Little refactor to keep things consistent https://github.com/rubygems/rubygems/commit/3934deb4e4 --- test/rubygems/helper.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/rubygems/helper.rb') diff --git a/test/rubygems/helper.rb b/test/rubygems/helper.rb index 5eae310222..1ab23c2983 100644 --- a/test/rubygems/helper.rb +++ b/test/rubygems/helper.rb @@ -1297,6 +1297,10 @@ Also, a list: $LOAD_PATH.find {|p| p == File.dirname($LOADED_FEATURES.find {|f| f.end_with?("/rubygems.rb") }) } end + def bundler_path + $LOAD_PATH.find {|p| p == File.dirname($LOADED_FEATURES.find {|f| f.end_with?("/bundler.rb") }) } + end + def with_clean_path_to_ruby orig_ruby = Gem.ruby -- cgit v1.2.1