diff options
| author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2025-10-27 15:05:33 +0900 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2025-10-27 07:33:45 +0000 |
| commit | 6a1644ddca64e81839bc5f9953dea692dcac7b70 (patch) | |
| tree | c1ca7b3eeb9346556d7fe6585e284031866ccd23 | |
| parent | 504a1ba7eec657c195450dda7625aa8825b2ecb9 (diff) | |
[ruby/rubygems] If we use shared GEM_HOME and install multiple versions, it may cause unexpected test failures.
```
Fetching gem metadata from https://gem.repo4/.
Resolving dependencies...
Resolving dependencies...
# $? => 0
cannot load such file -- diff/lcs
```
https://github.com/ruby/rubygems/commit/668b300261
| -rw-r--r-- | spec/bundler/spec_helper.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/bundler/spec_helper.rb b/spec/bundler/spec_helper.rb index 87bdf8b9f3..d750218452 100644 --- a/spec/bundler/spec_helper.rb +++ b/spec/bundler/spec_helper.rb @@ -19,6 +19,10 @@ ENV["VISUAL"] = nil ENV["BUNDLER_EDITOR"] = nil require "bundler" +# If we use shared GEM_HOME and install multiple versions, it may cause +# unexpected test failures. +gem "diff-lcs" + require "rspec/core" require "rspec/expectations" require "rspec/mocks" |
