2009/4/13 Jeudy, Guillaume <
gjeudy@...>:
> allowing() passes even if the method is not called which is not what I want.
The smell is that you are expecting a query. Why is it important that
it is called at all. The fact that the object acts on the result the
query returned should be enough. I would expect the test to check
that the object causes some effects when the query returns true (or
false, or whatever), not check that it performs a query and ignore the
effects. As someone reading the test, it appears very odd.
--Nat
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email