Merge pull request #2 from mharju/jasmine.vim

---

The code did not handle plurals, so I fixed this.
This commit is contained in:
Christopher H. Laco 2011-03-17 23:26:40 -04:00
commit a590c07a74

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