Extend the Interaction API so that objects that are constructed in scope can be
mocked.
e.g.
def mock = Mock(MyClass, [arg1, arg2])
1 * mock.a(_)
etc.
I find myself flipping to GMock
(https://code.google.com/p/gmock/wiki/Documentation_0_8?tm=6) to handle objects
constructed in scope and wrapping blocks in play {}. It would be really great
if the Spock interaction API could handle this instead for consistency and ease
of use.
Original issue reported on code.google.com by gus.j.po...@gmail.com on 3 Jun 2012 at 11:25
Original issue reported on code.google.com by
gus.j.po...@gmail.com
on 3 Jun 2012 at 11:25