OCMock Examples

Ash Furrow: Next, we create a mock connection, just like last time, except now we tell it to also expect a call to cancel. In addition to calling start, we’re also going to manually invoke the NSURLConnectionDataDelegate method connection:didReceiveResponse:. This means we’ll need a response to pass in as the second parameter. That’s where the … Continue reading OCMock Examples