40 STAssertNotNil(matz, nil);
41 STAssertNil(error, nil);
43 STAssertTrue([matz isKindOfClass:[
Person class]], nil);
44 STAssertEqualObjects([matz valueForKey:@"name"], @"Matz", nil);
45 STAssertNotNil([[matz attributes] objectForKey:@"name"], nil);
60 options:[NSDictionary dictionaryWithObject:@"XYZ" forKey:@"auth_token"]
62 STAssertNotNil(matz, nil);
63 STAssertNil(error, nil);
65 STAssertTrue([matz isKindOfClass:[
Person class]], nil);
66 STAssertEqualObjects([matz valueForKey:@"name"], @"Matz", nil);
67 STAssertNotNil([[matz attributes] objectForKey:@"name"], nil);
76 NSUInteger __block pending = 0;
78 ARService *postService = [[
ARService alloc] initWithSite:ActiveResourceKitTestsBaseURL() elementName:@"post"];
81 STAssertNotNil(posts, nil);
82 for (ARResource *post in posts)
86 STAssertNotNil(comments, nil);
87 NSLog(@"%@", [post valueForKey:@"title"]);
88 for (ARResource *comment in comments)
90 NSLog(@"%@", [comment valueForKey:@"text"]);
99 if (--pending == 0) [
self setStop:YES];
103 if (pending == 0) [
self setStop:YES];