vendredi 1 avril 2016

Can't Stub [CLLocationManager AuthorizationStatus] with OCMock

I tried stubbing AuthorizationStatus, but it alway returns kCLAuthorizationStatusResticted no matter what I do.

OCMStub([CLLocationManager authorizationStatus]).andReturn(kCLAuthorizationStatusAuthorizedAlways);

What did I do wrong?

Aucun commentaire:

Enregistrer un commentaire