ignore_file can be a Regexp, forgotten in d5f29a8

this caused a regression in d5f29a8,
that should be fixed by the current commit.
This commit is contained in:
Johan Holmberg
2015-08-04 10:46:23 +02:00
parent 651b613ba0
commit 2e58c4a76a

View File

@ -57,7 +57,7 @@ module Cmdtest
def _ignore_file?(path)
@ignored_files.any? do |ignored|
if ignored.index("*")
if String === ignored && ignored.index("*")
File.fnmatch(ignored, path, File::FNM_PATHNAME)
else
ignored === path