mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@34e6246
This commit is contained in:
parent
d51b4e34fb
commit
070cbe22b7
35 changed files with 127 additions and 133 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue