-
Notifications
You must be signed in to change notification settings - Fork 608
Closed
Description
i had updated to tip-of-master and discovered a regression in a test that performs
id mock = [OCMockObject niceMockForClass:[MyClass class]]; [[[mock stub] andReturn:mock] sharedInstance];
based on the comment in #392
Previous code would only catch references to self when using the OCMStub/OCMExpect macros. Now we avoid self referential retain loops if you use the [[[foo stub] andReturn:foo] sharedInstance] API.
i reverted this patch locally, and the failing test no longer fails.
i have put a comment in pull request #392 that i would like to revert it. also opening this issue to go with it.
Metadata
Metadata
Assignees
Labels
No labels