jackfranklin/nodefetch — pull request #1 by kouphax (2012-08-13 07:55:58+00:00)
Title: Test for creation of sample nodefetch.json file

Jack,

As discussed this pull request should cover a fairly straightforward way of testing nodefetch in a very coarse grained manner. The test suite assumes the nodefetch is globally installed on the test machine (this is a horrible assumption for a test to be fair. I've done this because currently the `nodefetch.js` script doesn't like being `required` within another script (the settings file doesn't get pulled down in a timely fashion). I didn't investigate further as you plan on a fair bit of refactoring (commander/shelljs).

I wouldn't do too many of these sorts of tests as in comparison to bare unit tests they are rather messy (touching the file system, reaching out to the interwebz etc.).

I'll get more in when I get a chance.