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

[rubygems/rubygems] Don't load system rubygems during tests

Since tests are about testing our development copy of rubygems, not
whatever is installed in the system.

f5e0b68cdd
This commit is contained in:
David Rodríguez 2021-12-08 22:33:55 +01:00 committed by git
parent 82bb9cedd3
commit 45c5794d32

View file

@ -21,7 +21,7 @@ class TestGemCommandsOpenCommand < Gem::TestCase
def test_execute
@cmd.options[:args] = %w[foo]
@cmd.options[:editor] = "#{Gem.ruby} -eexit --"
@cmd.options[:editor] = "#{ruby_with_rubygems_in_load_path} -eexit --"
gem 'foo', '1.0.0'
spec = gem 'foo', '1.0.1'