FIX: case sensitive unconditional add of exact match in user search

This commit is contained in:
Sam
2017-05-01 14:37:16 -04:00
parent a5fc51a967
commit 556ef4cfbd
4 changed files with 7 additions and 3 deletions

View File

@@ -145,7 +145,7 @@ class Autospec::Manager
# try focus tag
if failed_specs.length > 0
filename,_ = failed_specs[0].split(":")
if filename && File.exist?(filename)
if filename && File.exist?(filename) && !File.directory?(filename)
spec = File.read(filename)
start,_ = spec.split(/\S*#focus\S*$/)
if start.length < spec.length