Rework metadata mapping to fix breakage under OS X

This commit is contained in:
Blake Watters
2013-02-01 11:25:50 -05:00
parent f9c3e3a4d4
commit 197a54bf60
3 changed files with 17 additions and 24 deletions

View File

@@ -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);
}

View File

@@ -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];
}
}