root / asi-http-request-with-pithos / Classes / Tests / ASITestCase.m @ be116d22
History | View | Annotate | Download (707 Bytes)
1 |
// |
---|---|
2 |
// ASITestCase.m |
3 |
// Part of ASIHTTPRequest -> http://allseeing-i.com/ASIHTTPRequest |
4 |
// |
5 |
// Created by Ben Copsey on 26/07/2009. |
6 |
// Copyright 2009 All-Seeing Interactive. All rights reserved. |
7 |
// |
8 |
|
9 |
#import "ASITestCase.h" |
10 |
|
11 |
|
12 |
@implementation ASITestCase |
13 |
|
14 |
- (NSString *)filePathForTemporaryTestFiles |
15 |
{ |
16 |
NSString *path = [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0] stringByAppendingPathComponent:@"ASIHTTPRequest Test Files"]; |
17 |
if (![[NSFileManager defaultManager] fileExistsAtPath:path isDirectory:NULL]) { |
18 |
[[NSFileManager defaultManager] createDirectoryAtPath:path withIntermediateDirectories:NO attributes:nil error:NULL]; |
19 |
} |
20 |
return path; |
21 |
} |
22 |
|
23 |
@end |