eproxus/meck — pull request #68 by horkhe (2012-06-21 11:00:30+00:00)
Title: Feature/verify

I would like to suggest extending of the **meck** API with a famili of **verify** functions. They are inspired by Mockito Java mocking framework and its verify capabilities in particular.

The idea behind **verify** that it checks a condition and either succeeds of raises a runtime error. It does not need to be wrapped in any ?assert(...) function, it is assertion itself. Therefore it makes tests a little bit shorter.

If the specified condition is not meant then a nice readable error message is displayed. Consider: