summaryrefslogtreecommitdiff
path: root/test/rubygems/helper.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2021-12-04 14:00:02 +0100
committergit <svn-admin@ruby-lang.org>2022-09-29 03:41:51 +0900
commit00a040dda3bd2955aa6f470578d639b3c4fc3220 (patch)
tree052c57999f0b5989944f99853ed8534faac0a9b3 /test/rubygems/helper.rb
parent874a2bf17c8136bf4a9a9abee6ba2b3ab0f82add (diff)
downloadruby-00a040dda3bd2955aa6f470578d639b3c4fc3220.tar.gz
[rubygems/rubygems] Little refactor to keep things consistent
https://github.com/rubygems/rubygems/commit/3934deb4e4
Diffstat (limited to 'test/rubygems/helper.rb')
-rw-r--r--test/rubygems/helper.rb4
1 files changed, 4 insertions, 0 deletions
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