Skip to content

Commit

Permalink
[rubygems/rubygems] Don't load system rubygems during tests
Browse files Browse the repository at this point in the history
Since tests are about testing our development copy of rubygems, not
whatever is installed in the system.

rubygems/rubygems@f5e0b68cdd
  • Loading branch information
deivid-rodriguez authored and matzbot committed Dec 8, 2021
1 parent 82bb9ce commit 45c5794
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/rubygems/test_gem_commands_open_command.rb
Expand Up @@ -21,7 +21,7 @@ def gem(name, version = "1.0")

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'
Expand Down

0 comments on commit 45c5794

Please sign in to comment.