mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-14 12:34:29 +00:00
Tests: Fixed tests for withCredentials
This commit is contained in:
1 parent
d1917db47e
commit
cd2e9e29d4
2 files changed
+2
-8
No files matched your search
@@ -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