Hi Denis, On Wed, Mar 23, 2016 at 9:39 AM, Denis Kudriashov <dionisiydk@gmail.com> wrote:
2016-03-23 14:05 GMT+01:00 Ben Coman <btc@openinworld.com>:
[mock someMessage. mock2 someMessage2] were done [mock someMessage. mock2 someMessage2] were doneInOrder
I really like this idea. Thank's.
What about:
[mock someMessage. mock2 someMessage2] should beDone [mock someMessage. mock2 someMessage2] should beDoneInOrder
?
This reads nicely. What is the class of the value answered by #should? What can you do with it? For example, assuming it is a record of the execution of the receiver, you could use [mock someMessage. mock2 someMessage2] executed completely [mock someMessage. mock2 someMessage2] executed completelyInOrder and then #executed is meaningful, whereas #should is merely a linguistic hack. And of course one could use #executes, but I think #executed is better; it has the sense of [mock someMessage. mock2 someMessage2] when executed, #executes completely :-) _,,,^..^,,,_ best, Eliot