mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-29 21:25:51 +08:00
Rework metadata mapping to fix breakage under OS X
This commit is contained in:
@@ -1220,6 +1220,7 @@
|
||||
|
||||
expect(mappingResult).willNot.beNil();
|
||||
RKTestUser *anotherUser = [mappingResult firstObject];
|
||||
expect(anotherUser).notTo.equal(user);
|
||||
expect(anotherUser.name).to.equal(@"Blake Watters");
|
||||
expect(anotherUser.position).to.equal(@1);
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
// No primary key -- consult superclass
|
||||
return [super isEqual:object];
|
||||
} else {
|
||||
return [[(RKTestUser *)object userID] isEqualToNumber:self.userID];
|
||||
return self.userID && [[(RKTestUser *)object userID] isEqualToNumber:self.userID];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user