eproxus/meck — pull request #41 by xenolinguist (2011-10-11 19:40:47+00:00)
Title: Add assertWasCalled eunit macro

The traditional `?assert(meck:called(mod, func, args))` form is frustratingly unhelpful when the args don't match. (`true =/= false` doesn't tell me much to help me fix the failure.)

This patch adds an `?assertWasCalled(mod, func, args)` macro which presents a different error message when the function was truly not called versus when it was called with mismatched arguments.