Skip to content

Commit

Permalink
Updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
AliSoftware committed Aug 13, 2014
1 parent ec185b8 commit 3de9275
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,15 @@ The wiki also contain [some articles that can help you get started](https://gith
* remove any stubs you installed after each test — to avoid those stubs to still be installed when executing the next Test Case — by calling `[OHHTTPStubs removeAllStubs]` in you `tearDown` method. [see this wiki page for more info](https://github.com/AliSoftware/OHHTTPStubs/wiki/Remove-stubs-after-each-test)
* be sure to wait until the request has received its response before doing your assertions and letting the test case to finish (like for any asynchronous test). [see this wiki page for more info](https://github.com/AliSoftware/OHHTTPStubs/wiki/OHHTTPStubs-and-asynchronous-tests)

### XCTestExpectation & Xcode 5

To help you with asynchronous tests, you should use the `XCTestExpectation` class.

This class is available in Xcode 6, but if you still compile with Xcode 5, you can **use the `XCTestExpecation` subspec provided by `OHHTTPStubs`** that adds a custom implementation of this `XCTestExpecatation` class that **allows you to use it with Xcode 5 too**.

```
pod 'OHHTTPStubs/XCTestExpectation'
```

## Automatic loading

Expand Down

0 comments on commit 3de9275

Please sign in to comment.