1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
This commit is contained in:
Benoit Daloze 2019-09-29 19:13:37 +02:00
parent d51b4e34fb
commit 070cbe22b7
35 changed files with 127 additions and 133 deletions

View file

@ -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