eproxus / meck

A mocking library for Erlang
http://eproxus.github.io/meck
Apache License 2.0
811 stars 231 forks source link

Feature/reset #67

Closed horkhe closed 12 years ago

horkhe commented 12 years ago

I would like to propose extending the meck API with function 'reset/1'. The function erases the call history for a mocked module or a list of mocked modules. It is intended to be called at the end of the test setup phase to prevent calls to mocked modules made during setup show up in the eventual test call history. I believe that that can make the test verification phase much more clear.

eproxus commented 12 years ago

Great work! Merged in cf476475b062338ec91ef893eee3f0574c66517e.