I am currently using OHTTPStub to mock the responses of my AFNetworking calls. The AFNetworking calls return either a successful response or a failing response.
If I create a stub using "responseWithJSONObject" method, which is the only example provided or discussed concerning OHTTPStubs, then the success block of my AFNetworking calls is always executed.
So, what method do I need to call in order to execute the failure block of my AFNetworking methods.
I have already tried OHTTPStubs's "responseWithError" method, which does not call either the success or the failure block.