eproxus/meck — pull request #43 by daha (2011-10-12 17:46:21+00:00)
Title: Improved tests: Added an ok in the end of the tests that use a helper function with asserts

Hi Adam,

I made a minor improvement to a few tests by adding an ok at the end.

A failing test, run by foreach, does not show up in the stack trace if
it fails in it's last statement and that statement is a call to
another function where the asserts are. This is typically the case
for all the called_ tests. This can be helped by putting an ok in the
end. This change makes it easier to debug the tests with a helper
function, in the end, since it will tell the name of the test failing.