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

Module 'OHHTTPStubs' has no member named 'removeAllStubs' in 9.0.0 #336

Closed hungwei0331 closed 3 years ago

hungwei0331 commented 3 years ago

I had updated the OHHTTPStubs to 9.0.0,

Following the official document as below,

"remove any stubs you installed after each test — to avoid those stubs to still be installed when executing the next Test Case — by calling [HTTPStubs removeAllStubs] in your tearDown method."

but when i calling OHHTTPStubs.removeAllStubs()

it appear Module 'OHHTTPStubs' has no member named 'removeAllStubs',

which function should I write or instead,

thanks for any comment in advance

hungwei0331 commented 3 years ago

i found it rename to HTTPStubs

so call HTTPStubs.removeAllStubs() would be solved it.

ppamorim commented 2 years ago

@AliSoftware Could you please rename it in the documentation?