diff options
author | Benoit Daloze <[email protected]> | 2019-09-29 19:13:37 +0200 |
---|---|---|
committer | Benoit Daloze <[email protected]> | 2019-09-29 19:13:37 +0200 |
commit | 070cbe22b70ec2bec36c7cfc84b726510afa306f (patch) | |
tree | 56cee87834c85bd9f358ebee51bab4893fb9952f /spec/ruby/library/rubygems/gem/bin_path_spec.rb | |
parent | d51b4e34fbdbe1a845aa2251b1fa3304de809b32 (diff) |
Update to ruby/spec@34e6246
Diffstat (limited to 'spec/ruby/library/rubygems/gem/bin_path_spec.rb')
-rw-r--r-- | spec/ruby/library/rubygems/gem/bin_path_spec.rb | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/spec/ruby/library/rubygems/gem/bin_path_spec.rb b/spec/ruby/library/rubygems/gem/bin_path_spec.rb index 73509e9066..bfcc3fba89 100644 --- a/spec/ruby/library/rubygems/gem/bin_path_spec.rb +++ b/spec/ruby/library/rubygems/gem/bin_path_spec.rb @@ -20,16 +20,13 @@ describe "Gem.bin_path" do default_specifications_dir = Gem::Specification.default_specifications_dir end - if Dir.exist?(default_specifications_dir) - Gem::Specification.each_spec([default_specifications_dir]) do |spec| - spec.executables.each do |exe| - path = Gem.bin_path(spec.name, exe) - File.should.exist?(path) - end + skip "Could not find the default gemspecs" unless Dir.exist?(default_specifications_dir) + + Gem::Specification.each_spec([default_specifications_dir]) do |spec| + spec.executables.each do |exe| + path = Gem.bin_path(spec.name, exe) + File.should.exist?(path) end - else - # non-installed MRI, there are no default gemspecs - 1.should == 1 end end end |