correct way to do partial observer on notification center

Discussion of the OCMock framework. If you have patches we would prefer you to send them to the mailing list, but attaching them to a topic is possible, too.

correct way to do partial observer on notification center

Postby infrid » 25 Feb 2013, 18:20

I find that when I do partial mocks for notification center, I find that it scews up my ocunit tests becuase the partial mock doesn't get destroyed before the end of the test, especially in situations where the test run aborts.

What is the correct way to do this without making my unit testing suite fragile?

I've found that setting the partialmock object to nil in teardown is not sufficient.
infrid
 
Posts: 2
Joined: 25 Feb 2013, 18:15

Return to OCMock