OHHTTPStubs icon indicating copy to clipboard operation
OHHTTPStubs copied to clipboard

[wiki] OHHTTPStubsResponse to HTTPStubsResponse with Swift

Open soranoba opened this issue 5 years ago • 4 comments

New Issue Checklist

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)

soranoba avatar Oct 26 '20 07:10 soranoba

I noticed the error, too. Too bad cannot edit the wiki and send a PR. It should be a quick and easy fix.

plasmabal avatar Dec 29 '20 07:12 plasmabal

+1, the issue is still here and confusing for new users. Would be nice if we can edit the wikis

jkw-statsig avatar Apr 26 '21 21:04 jkw-statsig

The curse of open source. Wasted half an hour on this.

mxcl avatar Jun 01 '21 20:06 mxcl

+1 very confusing for new users!

mikaelacaron avatar Nov 10 '21 20:11 mikaelacaron