eproxus / meck

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

Fix calling mocked modules from expectation fun. #232

Closed pergu closed 3 years ago

pergu commented 3 years ago

Before this change calling a mocked module from inside an expectation fun, and then calling meck:passthrough/1 raises an exception. This happens because the current call state is invalidated by the mocked function.

eproxus commented 3 years ago

Could you make an entry into CHANGELOG.md under ## [Unreleased] ### Fixed as well? E.g.

- Fix calling mocked modules from expectations fun [\#232](https://github.com/eproxus/meck/pull/232)

(I changed it to modules which I think is what you fixed, no?)

pergu commented 3 years ago

Alright, added the line to the changelog.

eproxus commented 3 years ago

Thanks! 🎉