summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-04-08 21:14:27 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-05-08 14:13:29 +0900
commit676d816ef1fa55bae2b5020782ba47284748383b (patch)
treee48ab9101cfeb76a708c319168d68da20d7b386d /lib
parent163539434701235b46ad14e10d573c0b85cb6b50 (diff)
[rubygems/rubygems] Refactor ruby command line building for tests
https://github.com/rubygems/rubygems/commit/43819b6973
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3092
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