OHHTTPStubs
OHHTTPStubs copied to clipboard
[wiki] OHHTTPStubsResponse to HTTPStubsResponse with Swift
New Issue Checklist
- [x] I have tried with the latest version of OHHTTPStubs
- [x] I have read the README
- [x] I have read the Using the right Swift Version of
OHHTTPStubsfor your project section - [x] I have searched in the existing issues
- [x] I have read the OHHTTPStubs wiki to see if there wasn't a detailed page talking about my issue
Environment
- version of OHHTTPStubs: 9.0.0
- integration method you are using:
- [ ] Cocoapods
- [x] Carthage
- [ ] submodule
- [ ] other
- version of the tool you use: [INSERT VERSION HERE]
Issue Description
It seems that some wiki contents are incorrect. https://github.com/AliSoftware/OHHTTPStubs/wiki/Usage-Examples
// wrong
OHHTTPStubsResponse(data: stubData!, statusCode:200, headers:nil)
// correct
HTTPStubsResponse(data: stubData!, statusCode:200, headers:nil)
Complete output when you encounter the issue (if any)
I noticed the error, too. Too bad cannot edit the wiki and send a PR. It should be a quick and easy fix.
+1, the issue is still here and confusing for new users. Would be nice if we can edit the wikis
The curse of open source. Wasted half an hour on this.
+1 very confusing for new users!