File.realpath can raise ENOTDIR
This commit is contained in:
parent
5ad2dfd8dc
commit
a1a198d03a
@ -191,7 +191,7 @@ class MSpecScript
|
||||
patterns.each do |pattern|
|
||||
begin
|
||||
expanded = File.realpath(pattern)
|
||||
rescue Errno::ENOENT
|
||||
rescue Errno::ENOENT, Errno::ENOTDIR
|
||||
next
|
||||
end
|
||||
if File.file?(expanded) && expanded.end_with?('.rb')
|
||||
|
Loading…
x
Reference in New Issue
Block a user