top | item 9143119

Nock – HTTP mocking and expectations library

63 points| tilt | 11 years ago |github.com | reply

11 comments

order
[+] cmkrnl|11 years ago|reply
I'd like to lodge a modest complaint about the name. http://doc.urbit.org/doc/nock/tut/1/
[+] davidgerard|11 years ago|reply
I'm sure there's lots of namespace room! And if there isn't, then too bad for Urbit.
[+] mmcclure|11 years ago|reply
I used this for a few projects a while back and loved it, and looking through the README in Master it seems like a lot has been improved:

- Delayed responses. - Delayed connections. - Custom HTTP verbs for ones that don't have convenience methods. - Nock Back

I believe recording had just been introduced when I was using the library, but Nock Back is seems like the last piece that brings it on par with the VCR lib I was used to using with Ruby / RSpec projects.

It's always nice to scroll through a project you've had a good experience with and see the README has been considerably fleshed out (in a good way).

[+] nailer|11 years ago|reply
A lot of my current projects have Test Induced Design Damage from having HTTP functionality ripped away from any other processing. This would make my methods shorter and my tests cover more as well.
[+] deitcher|11 years ago|reply
I have used this in the past with success. It does its job.
[+] codemod|11 years ago|reply
nock is good.. used it a few times..