mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-30 05:35:40 +08:00
Ported RestKit to using managed object contexts with concurrency types. Numerous cleanups and API updates.
This commit is contained in:
@@ -85,7 +85,7 @@
|
||||
assertThat([data valueForKeyPath:@"tabdata.item"], is(instanceOf([NSArray class])));
|
||||
[provider setMapping:mapping forKeyPath:@"tabdata.item"];
|
||||
RKObjectMapper *mapper = [RKObjectMapper mapperWithObject:data mappingProvider:provider];
|
||||
RKObjectMappingResult *result = [mapper performMapping];
|
||||
RKMappingResult *result = [mapper performMapping];
|
||||
assertThatUnsignedInteger([[result asCollection] count], is(equalToInt(2)));
|
||||
assertThatUnsignedInteger([[data valueForKeyPath:@"tabdata.title"] count], is(equalToInt(2)));
|
||||
assertThatUnsignedInteger([[data valueForKeyPath:@"tabdata.item"] count], is(equalToInt(2)));
|
||||
|
||||
Reference in New Issue
Block a user