1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
#import "RSSKitTests.h"
#import "GNUstep.h"
@implementation RSSFeed (Resources)
+(id)feedWithResource: (NSString*)aResourceName
{
return AUTORELEASE([[self alloc] initWithResource: aResourceName]);
}
-(id)initWithResource: (NSString*)aResourceName
{
NSBundle* testsBundle = [NSBundle bundleForClass: [RSSKitTests class]];
NSString* res = [testsBundle pathForResource: aResourceName ofType: @"xml"];
NSURL* url = [NSURL fileURLWithPath: res];
return [self initWithURL: url];
}
@end
@implementation RSSKitTests
- (void) testNothing
{
// UKFail();
}
@end
|