AliSoftware / OHHTTPStubs

Stub your network requests easily! Test your apps with fake network data and custom response time, response code and headers!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[wiki] OHHTTPStubsResponse to HTTPStubsResponse with Swift

soranoba opened this issue · comments

New Issue Checklist

Environment

  • version of OHHTTPStubs: 9.0.0
  • integration method you are using:
    • Cocoapods
    • 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!