kiwi-bdd / Kiwi

Simple BDD for iOS
BSD 3-Clause "New" or "Revised" License
4.14k stars 512 forks source link

Guys how validate received object? #676

Closed bimawa closed 8 years ago

bimawa commented 8 years ago

I have a async call from network service and want to validate received object. I'm try next:

 [[screenPresenter shouldEventually] receive:@selector(receiveOrderDetails:) withArguments:any()];

But receiveOrderDetails: selector getting NSArray with my object; How i can await and get data for test

[[(ZMModel* (NSArray.firstObject) ).color should] beNil]; //for example
bimawa commented 8 years ago

I just validate output object after call target function.