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 601 forks source link

I am getting real server response ,Unable to recieve mock response. #316

Open ShoaibPathan opened 4 years ago

ShoaibPathan commented 4 years ago

New Issue Checklist

Environment

Issue Description

[DESCRIBE YOUR ISSUE HERE]

Complete output when you encounter the issue (if any)
[INSERT OUTPUT HERE]
ShoaibPathan commented 4 years ago

I am getting server rather than the mock response stub(condition: isHost("dev.local.in")) { _ in let stubPath = OHPathForFile("users.json", type(of: self)) return fixture(filePath: stubPath!, headers: ["Content-Type":"application/json","Authorization" : "Token 68299ee2ffd0a5b1620d00966af39f2c72952c3e"]) }

jeffctown commented 4 years ago

@ShoaibPathan can you please provide an example project? I am not able to reproduce.