lunarmodules / luassert

Assertion library for Lua
MIT License
206 stars 77 forks source link

Mock does not allow for easy de-mock #59

Closed Lexicality closed 9 years ago

Lexicality commented 10 years ago

The mock function modifies a table in-place but provides no method of de-mocking it. Thus if you wish to re-use a table you must duplicate it and mock that instead. This is in contrast to spies and stubs both of which have a revert method

o-lim commented 9 years ago

@Lexicality try out PR #85. This allows for easy de-mock via mock.revert.