2016-04-20 20:36 GMT+02:00 S Krish <krishnamachari.sudhakar@gmail.com>:
result should return: [mock someMessage]

It should verify that result was returned from message defined inside block. That's why I use ��"should beReturnedFrom: [mock someMessage]". Following test demonstrates idea:

mock := Mock new.
mock stub someMessage willReturn: #result.
mock stub anotherMessage willReturn: #anotherResult.

mock someMessage should be: #result.
mock anotherMessage should be: #anotherResult.

#result should beReturnedFrom: [mock someMessage].
#result should not beReturnedFrom: [mock anotherMessage]