AliSoftware / AliSoftware/OHHTTPStubs

Possible Upload workaround (based on OCMock)

Open
#312 3 comments 0 reactions 0 assignees View on GitHub
Waiting for input
Dominant language
Objective-C
Stars
5.1k
Forks
597
PR merge metrics
No merged PRs in 30d

Description

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**.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.