summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/rubygems/test_case.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/rubygems/test_case.rb b/lib/rubygems/test_case.rb
index b4d8db317c..0d450ba023 100644
--- a/lib/rubygems/test_case.rb
+++ b/lib/rubygems/test_case.rb
@@ -1260,6 +1260,10 @@ Also, a list:
end
end
+ def ruby_with_rubygems_in_load_path
+ [Gem.ruby, "-I", File.expand_path("..", __dir__)]
+ end
+
def with_clean_path_to_ruby
orig_ruby = Gem.ruby