OCMapper
OCMapper copied to clipboard
processDictionaryFromObject doesn't work in unit test target
Because the current bundle is not the main bundle, but it's the unit test bundle. Try using runtime api instead
- (id)processDictionaryFromObject:(NSObject *)object {
if ([NSBundle mainBundle] != [NSBundle bundleForClass:object.class] && [object class] != [NSArray class])
{
return object;
}
Woah, ran into the same issue with the recent cocoapods version, how can this be?
Okay, the code is not merged, nevermind... will test the approach proposed in #34