Fixed the names

This commit is contained in:
Kevin Harwood 2013-05-16 14:24:56 -05:00
parent b6db2df022
commit d4fbdfa228

View file

@ -21,7 +21,7 @@
self.baseURL = [NSURL URLWithString:AFNetworkingTestsBaseURLString]; self.baseURL = [NSURL URLWithString:AFNetworkingTestsBaseURLString];
} }
- (void)testThatJSONRequestionOperationAcceptsApplicationJSON{ - (void)testThatJSONRequestOperationAcceptsApplicationJSON{
NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"/response-headers?Content-Type=application/json" relativeToURL:self.baseURL]]; NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"/response-headers?Content-Type=application/json" relativeToURL:self.baseURL]];
AFJSONRequestOperation *operation = [[AFJSONRequestOperation alloc] initWithRequest:request]; AFJSONRequestOperation *operation = [[AFJSONRequestOperation alloc] initWithRequest:request];
[operation start]; [operation start];
@ -29,7 +29,7 @@
expect(operation.error).will.beNil(); expect(operation.error).will.beNil();
} }
- (void)testThatJSONRequestionOperationAcceptsTextJSON{ - (void)testThatJSONRequestOperationAcceptsTextJSON{
NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"/response-headers?Content-Type=text/json" relativeToURL:self.baseURL]]; NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"/response-headers?Content-Type=text/json" relativeToURL:self.baseURL]];
AFJSONRequestOperation *operation = [[AFJSONRequestOperation alloc] initWithRequest:request]; AFJSONRequestOperation *operation = [[AFJSONRequestOperation alloc] initWithRequest:request];
[operation start]; [operation start];
@ -37,7 +37,7 @@
expect(operation.error).will.beNil(); expect(operation.error).will.beNil();
} }
- (void)testThatJSONRequestionOperationAcceptsTextJavascript{ - (void)testThatJSONRequestOperationAcceptsTextJavascript{
NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"/response-headers?Content-Type=text/javascript" relativeToURL:self.baseURL]]; NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"/response-headers?Content-Type=text/javascript" relativeToURL:self.baseURL]];
AFJSONRequestOperation *operation = [[AFJSONRequestOperation alloc] initWithRequest:request]; AFJSONRequestOperation *operation = [[AFJSONRequestOperation alloc] initWithRequest:request];
[operation start]; [operation start];
@ -45,7 +45,7 @@
expect(operation.error).will.beNil(); expect(operation.error).will.beNil();
} }
- (void)testThatJSONRequestionOperationDoesNotAcceptInvalidContentType{ - (void)testThatJSONRequestOperationDoesNotAcceptInvalidContentType{
NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"/response-headers?Content-Type=application/no-json" relativeToURL:self.baseURL]]; NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"/response-headers?Content-Type=application/no-json" relativeToURL:self.baseURL]];
AFJSONRequestOperation *operation = [[AFJSONRequestOperation alloc] initWithRequest:request]; AFJSONRequestOperation *operation = [[AFJSONRequestOperation alloc] initWithRequest:request];
[operation start]; [operation start];