AliSoftware / OHHTTPStubs

Stub your network requests easily! Test your apps with fake network data and custom response time, response code and headers!
MIT License
5.03k stars 602 forks source link

[wiki] OHHTTPStubsResponse to HTTPStubsResponse with Swift #334

Open soranoba opened 3 years ago

soranoba commented 3 years ago

New Issue Checklist

Environment

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)
plasmabal commented 3 years ago

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

jkw-statsig commented 3 years ago

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

mxcl commented 3 years ago

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

mikaelacaron commented 2 years ago

+1 very confusing for new users!