Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
6 of 9 tasks
ShoaibPathan opened this issue Sep 25, 2019 · 2 comments
Open
6 of 9 tasks

Comments

@ShoaibPathan
Copy link

ShoaibPathan commented Sep 25, 2019

New Issue Checklist

Environment

  • version of OHHTTPStubs: [LIB VERSION HERE]
  • integration method you are using:
    • Cocoapods
    • Carthage
    • submodule
    • other
  • version of the tool you use: [INSERT VERSION HERE]

Issue Description

[DESCRIBE YOUR ISSUE HERE]

Complete output when you encounter the issue (if any)
[INSERT OUTPUT HERE]
@ShoaibPathan ShoaibPathan changed the title I amgetting real server response ,Unable to recieve mock response. I am getting real server response ,Unable to recieve mock response. Sep 25, 2019
@ShoaibPathan
Copy link
Author

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
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants