Fixed Red/Green bar status line reading regex to work

This commit is contained in:
Mikko Harju 2011-03-12 18:04:53 +02:00
parent 58708fb349
commit d4ed444db0

View File

@ -85,7 +85,7 @@ function jasmine#redgreen()
let lines = split(result, "\n") let lines = split(result, "\n")
for line in lines for line in lines
if line =~ '\d\+ examples, \(\d\+\) failure' if line =~ '\d\+ example\(s*\), \(\d\+\) failure\(s*\)'
if line =~ ', 0 failure' if line =~ ', 0 failure'
call jasmine#greenbar(line) call jasmine#greenbar(line)
else else