RestKit RKMappingTest JSON array

前端 未结 2 900
猫巷女王i
猫巷女王i 2021-01-25 00:59

I\'m using RestKit ~> 0.20.3 and RestKit/Testing ~> 0.20.3. So this is an example of my mapping:

RKObjectMapping *mapping = [RKObjectMapping mappingForClass:[Pla         


        
2条回答
  •  伪装坚强ぢ
    2021-01-25 01:20

    You're thinking about testing, and more specifically the scope of testing, wrongly. This is a unit test, and the unit is the mapping. The mapping deals with individual items and that is why your modified test works - because the scope is correct.

    Response descriptors have a different scope. You can't test the scope of a response descriptor in a mapping test.

提交回复
热议问题