cloudhead/vows — pull request #153 by jmreidy (2011-11-11 14:39:37+00:00)
Title: Add underscore support

While there still doesn't seem to be a universal convention for using underscores versus dashes in node files, I prefer the underscore notation. Unfortunately, vows only supports test files that end in `-test` or `-spec`. This code adds logic to allow either a dash or underscore.

As part of this fix, I noticed that the vows `watch` functionality wasn't working entirely as it should. Investigating it revealed that *all* files in the test directory were being loaded, regardless of whether the file name ended in a dash (or underscore) `test/spec`. Since I needed to fix the watch logic to support underscores anyway, I also added a fix for this issue.

Finally, the `testInherit` test was not loading the `lib` version of vows, but rather the global system vows, so there's a quick change there.