erikdoe/ocmock — pull request #12 by niblh (2012-04-29 16:32:43+00:00)
Title: Let OCMBlockConstraint copy the block passed into initializer to avoid problems with stack allocated blocks

Nicer if the client code doesn't have to bother about copying any stack allocated block if it would go out of scope before checked against.

I.e if you have a helper method setting up the expectations using constraint blocks, in which the original checker-block is created, the block is likely to be out of scope when the constraint is checked against.