xetorthio / shmock

Simple HTTP Mocking Library
MIT License
101 stars 20 forks source link

add a count() method to Handler (+version bump) #6

Closed kylezeeuwen closed 10 years ago

kylezeeuwen commented 10 years ago

Hi Jonathan,

Thanks for the code! I am using it add work and added a very simple addition. I have a use case where I want to know how many times a call to a persistent Assertion is made. I find the count() method is easier than adding three (example) Assertions and verifying that each one was called via Handler.done().

I am not tied to variable or function names so change away.

Thanks Kyle