The >>>
operator allows a sequence of values to be returned:
myMock.someCall() >>> ['first value', 'second value', 'third value', 'etc']
This returns each string in turn. Behaviour (such as throwing exceptions) in closures cannot be used by this operator.
The >>
operator allows value or behaviour (closures) to be returned