Skip to content

Commit a292fd8

Browse files
committed
Fix README so it doesn't talk about XCTest "bug"
It's not a bug. It's the design.
1 parent 010b446 commit a292fd8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -323,9 +323,9 @@ deallocated so that the swizzling is undone.
323323

324324
In the example above, `mockUserDefaultsClass` will go out scope and be
325325
destroyed. But what if you kept it in the test fixture, as an ivar or a
326-
property? Due to a bug in XCTest, it won't be implicitly destroyed. You need to
327-
explicitly set it to nil in `-tearDown`, or the swizzling will bleed over to
328-
your other tests, compromising their integrity.
326+
property? According to XCTest's design, it won't be implicitly destroyed.
327+
You need to explicitly set it to nil in `-tearDown`, or the swizzling will
328+
bleed over to your other tests, compromising their integrity.
329329

330330
If you need more control over when the swizzling is undone, call
331331
`stopMocking(…)` on the mock class.

0 commit comments

Comments
 (0)