SenTestingKitを使用してテストを実行すると、ブロック内で正しく失敗しません。
operation = [AFJSONRequestOperation JSONRequestOperationWithRequest:request
success:^(NSURLRequest *req, NSHTTPURLResponse *response, id jsonObject){
STFail(@"This does not fail");
}
failure:^(NSURLRequest *req, NSHTTPURLResponse *response, NSError *error, id jsonObject){
STFail(@"Neither does this");
}];
[operation start];
STFail(@"But this fails fine");
私は何が欠けていますか?