cerihughes
cerihughes
@spotify/objc-dev
@JohnSundell : I would assume that by default we'd want to be checking object equality in tests, unless we have a requirement that something returns the same instance under certain...
... but if we *do* create a protocol for the VC (there are still other cases where it's easier if it's a concrete class), we'd want to expose this in...
FYI, we've actually written an OCMockito helper that tracks all mocks that are created and automatically calls `stopMocking()` on them during `tearDown`. I wonder if this would be something that...
@jonreid: Agreed - I think `stopAllMocks()` is a much nicer approach. It means that: - `disableMocking(mock)` and `stopMocking(mock)` don't need to be part of the public API any more, they'd...
I've spent some time investigating this more thoroughly and have realised that even with the PR https://github.com/jonreid/OCMockito/pull/140 the problem hasn't gone away. I wrote a rough test case that captures...
... or of course, the other option is to just document these corner cases and make sure testers know how to fix their tests when the crash occurs.
Hey @jonreid! I think the latter... it hasn't made the problem go away, so let's get rid of it. I'll write something for the FAQ when I get a chance,...
Hey @RuudPuts ! No progress from me I'm afraid. We've pretty much decided to not use mocks to test any scenarios showing the `dealloc` problem. It's quite an edge case...
@jonreid - I'm a little hesitant about putting too much logic in `XCTestCase` subclasses. There are sometimes cases when you want to work with multiple test frameworks, e.g. KIF for...