mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-17 16:11:28 +00:00
Tests: Fixed tests for withCredentials
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user