AliSoftware / AliSoftware/OHHTTPStubs

Possible Upload workaround (based on OCMock)

Aperta
#312 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Waiting for input
Lingua principale
Objective-C
Stelle
5.1k
Fork
597
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

I have been able to implement mock tests for my upload requests based on [this Stackoverflow answer](https://stackoverflow.com/a/20663781/5098984).

As a result, I have removed every `OHHttpStubs` dependency from my project, to not mix libraries. Maybe you could change your internal approach to stubbing the web requests and support upload tasks as well, based on `OCMock`?

If you do not want to depend on an external library, I think you could implement similar behaviour as `OCMock` with **Method Swizzling**.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.