hibri / HttpMock

A library for creating Http servers on the fly in tests and stubbing responses
MIT License
128 stars 44 forks source link

Path and method params were swapped. Added a test for multiple calls #20

Closed hibri closed 10 years ago

knocte commented 10 years ago

IMHO to take advantage of static typing, maybe the "method" parameter should be moved to be an Enum instead of a string. This way, it would be impossible to swap the parameters.

hibri commented 10 years ago

I agree. That's a good idea. Need to do the parsing only when it first receives the request