How to do the equivalent of Mockito's deep mock / stub (RETURNS_DEEP_STUBS ) in Spock? Something like:
Changes changes = Mock()
changes.id(_).current() >> aChangeApi
While in Mockito it'd be:
Changes changes = mock(Changes.class, RETURNS_DEEP_STUBS);
when(changes.id(any()).current()).thenReturn(aChangeApi);
changes() >> aChangeApi
tocurrent() >> aChangeApi
, to properly match the example provided in the question. – Presbyterial