davidchambers/tutor — pull request #10 by nicknovitski (2012-04-20 00:37:12+00:00)
Title: Isolate Parser, add parser-specific tests

This works, but something I don't like about it is that I haven't figured out a good way to test the request-builder in isolation. Something like "When this function receives parameters like this, then it calls http.request with parameters like thus." I know how to do it in Ruby, but mocks are a different beast in Node; the namespace seems to work completely differently.

Have you dealt with or heard anything about that kind of thing?