Tests: Fixed tests for withCredentials

This commit is contained in:
Andrew Hankinson
2014-12-04 16:37:34 -05:00
parent d1917db47e
commit cd2e9e29d4
2 changed files with 2 additions and 8 deletions
-6
View File
@@ -36,10 +36,4 @@
[self assertNull:data];
}
- (void)testRequestWithCredentials
{
var connection = [CPURLConnection connectionWithRequest:[CPURLRequest requestWithURL:@"Tests/Foundation/CPURLConnectionTest.j"] delegate:self withCredentials:YES];
[self assertTrue:[connection withCredentials]];
}
@end
+2 -2
View File
@@ -7,10 +7,10 @@
- (void)testSetWithCredentials
{
var cfHTTPRequest = new CFHTTPRequest();
[self assertFalse:cfHTTPRequest.getWithCredentials()];
[self assertFalse:cfHTTPRequest.withCredentials()];
cfHTTPRequest.setWithCredentials(YES);
[self assertTrue:cfHTTPRequest.getWithCredentials()];
[self assertTrue:cfHTTPRequest.withCredentials()];
}
@end