Merge pull request #2 from mharju/jasmine.vim
--- The code did not handle plurals, so I fixed this.
This commit is contained in:
commit
a590c07a74
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue