Adds test for unregistering HTTPOperation class.
This commit is contained in:
parent
12ed161510
commit
4e72a84b76
1 changed files with 4 additions and 0 deletions
|
|
@ -54,6 +54,10 @@
|
|||
[self.client registerHTTPOperationClass:[AFJSONRequestOperation class]];
|
||||
operation = [self.client HTTPRequestOperationWithRequest:request success:NULL failure:NULL];
|
||||
expect([operation class]).to.equal([AFJSONRequestOperation class]);
|
||||
|
||||
[self.client unregisterHTTPOperationClass:[AFJSONRequestOperation class]];
|
||||
operation = [self.client HTTPRequestOperationWithRequest:request success:NULL failure:NULL];
|
||||
expect([operation class]).to.equal([AFHTTPRequestOperation class]);
|
||||
}
|
||||
|
||||
- (void)testXMLRequestOperationContruction {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue