kmiyashiro/grunt-mocha — pull request #19 by rohni (2012-09-24 20:15:09+00:00)
Title: The Mocha vs mocha test failed, here is a more robust handling of the pr...

Tried using grunt-mocha and ran into a problem where it failed because there was no test to see whether Mocha was defined, and so it failed.

This fixes the problem. I tried a try..catch solution initially, but it was pretty ugly, although I don't think this is much better.

The whitespace changes seem to have been made by my editor, but it is a bit cleaner this way.

Thanks, and hope this is helpful.

Rohan