bin_path_spec.rb relied to available Ruby environment with after make install

But we stub-out GEM_HOME variable for test-bundled-gems and others on ruby/ruby. It means
the installation path mismatched with GEM_HOME variable always. We can't test this example
collectly.

```
1)
Gem.bin_path finds executables of default gems, which are the only files shipped for default gems FAILED
Expected File.exist? "/Users/hsbt/Documents/github.com/ruby/ruby/.bundle/gems/bundler-2.7.0.dev/exe/bundle"
to be truthy but was false
```
This commit is contained in:
Hiroshi SHIBATA 2025-01-30 12:52:51 +09:00
parent 19ba093c94
commit 895aa44b81
No known key found for this signature in database
GPG Key ID: F9CF13417264FAC2

View File

@ -22,6 +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'])
Gem::Specification.each_spec([default_specifications_dir]) do |spec|
spec.executables.each do |exe|