Fixed the names
This commit is contained in:
parent
b6db2df022
commit
d4fbdfa228
1 changed files with 4 additions and 4 deletions
|
|
@ -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];
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue