Skip to content

Commit 087e2d8

Browse files
committed
Updated README
1 parent 495aa5d commit 087e2d8

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
@@ -123,7 +123,7 @@ You may also return a network error for your stub. For example, you can easily s
123123
124124
### Using download speed instead of responseTime
125125

126-
When building the `OHHTTPStubsResponse` object, you can specify a response time (in seconds) so that the sending of the fake response will be postponed. This allows you to simulate a slow network for example.
126+
When building the `OHHTTPStubsResponse` object, you can specify a response time (in seconds) so that the sending of the fake response will be spread over time. This allows you to simulate a slow network for example. ([see "Set request and response time"](#set-request-and-response-time))
127127

128128
If you specify a negative value for the responseTime parameter, instead of being interpreted as a time in seconds, it will be interpreted as a download speed in KBytes/s. In that case, the response time will be computed using the size of the response's data to simulate the indicated download speed.
129129

@@ -166,12 +166,12 @@ This last one is useful when using `OHHTTPStubs` in your Unit Tests, to remove a
166166

167167
### Name your stubs and log their activation
168168

169-
You can add a name (at your convenience) to your stubs. The only purpose of this is for debug & display in your console or anywhere else.
169+
You can add a name of your choice to your stubs. The only purpose of this is to easily identify your stubs for debugging, like when displaying them in your console.
170170

171171
id<OHHTTPStubsDescriptor> stub = [OHHTTPStubs stubRequestsPassingTest:... withStubResponse:...];
172172
stub.name = @"Stub for text files";
173173

174-
You can even imagine appling the `.name = ...` affectation directly if you don't intend to use the `id<OHHTTPStubsDescriptor>` in a variable:
174+
You can even imagine appling the `.name = ...` affectation directly if you don't need to use the returned `id<OHHTTPStubsDescriptor>` otherwise:
175175

176176
[OHHTTPStubs stubRequestsPassingTest:^BOOL(NSURLRequest *request) {
177177
...

0 commit comments

Comments
 (0)