erikdoe / ocmock

Mock objects for Objective-C
http://ocmock.org
Apache License 2.0
2.16k stars 606 forks source link

Disable invocation and arg actions for rejects. #435

Closed dmaclach closed 4 years ago

dmaclach commented 4 years ago

Throw an exception if invocationActions are added to a reject.

Refer to #434.

dmaclach commented 4 years ago

Another option would be to stop #define OCMReject(invocation) from returning a recorder which may make a lot of these compile time as opposed to runtime errors.

dmaclach commented 4 years ago

Actually we need the recorder for .ignoringNonObjectArgs so scratch that idea.

dmaclach commented 4 years ago

Thanks Erik!