diff options
author | Hiroshi SHIBATA <[email protected]> | 2025-01-30 17:35:04 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2025-01-30 18:13:19 +0900 |
commit | 167985dc871aca74d1b50f3766da1b775f7962e9 (patch) | |
tree | b939f12134423d6988be49e700a14775ec4ee70b | |
parent | dc3d2a3c2ff20c40b715dd18e1ab52a4b8a7619d (diff) |
Handle environment where GEM_HOME is not available
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/12675
-rw-r--r-- | spec/ruby/library/rubygems/gem/bin_path_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/library/rubygems/gem/bin_path_spec.rb b/spec/ruby/library/rubygems/gem/bin_path_spec.rb index d9242f438d..0b8c4db08b 100644 --- a/spec/ruby/library/rubygems/gem/bin_path_spec.rb +++ b/spec/ruby/library/rubygems/gem/bin_path_spec.rb @@ -22,7 +22,7 @@ describe "Gem.bin_path" do end skip "Could not find the default gemspecs" unless Dir.exist?(default_specifications_dir) - skip "default_specifications_dir mismatch with GEM_HOME" unless default_specifications_dir.include?(ENV['GEM_HOME']) + skip "default_specifications_dir mismatch with GEM_HOME" if ENV["GEM_HOME"] && !default_specifications_dir.start_with?(ENV['GEM_HOME']) Gem::Specification.each_spec([default_specifications_dir]) do |spec| spec.executables.each do |exe| |