Fix error when file arg uses absolute path #83
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
'vows /absolute/path/to/testfile.js' results in an error because the current working directory is appended to the file arg.
Here's an example error message:
node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Cannot find module '/absolute/path/current/working/directory/absolute/path/to/testfile'
at Function._resolveFilename (module.js:320:11)
at Function._load (module.js:266:25)
at require (module.js:348:19)
at /foobar/.npm/vows/0.5.8/package/bin/vows:369:19
at Array.reduce (native)
at importSuites (/foobar/.npm/vows/0.5.8/package/bin/vows:368:18)
at Object. (/foobar/.npm/vows/0.5.8/package/bin/vows:202:15)
at Module._compile (module.js:404:26)
at Object..js (module.js:410:10)
at Module.load (module.js:336:31)
Tested with node 0.4.5 on osx