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

AFNetworking not finding valid stubs #57

Closed
ehlersd opened this issue Nov 26, 2013 · 1 comment
Closed

AFNetworking not finding valid stubs #57

ehlersd opened this issue Nov 26, 2013 · 1 comment

Comments

@ehlersd
Copy link

ehlersd commented Nov 26, 2013

The problem seems to be in the LSStubRequest class in the individual matchesMethod:/matchesURL:/matchesHeaders:/matchesBody: methods.

Basically, request.method for AFNetworking is undefined, so the match will always fail. It needs to be [request method]. The same goes for the other items in the protocol:

  • request.url should be [request url]
  • request.headers should be [request headers]
  • request.body should be [reqeust body]

For some reason, it just is failing with using the dot notation.

@luisobo
Copy link
Owner

luisobo commented Jan 9, 2014

hi @ehlersd, can you provide a sample project or steps to reproduce?

Thanks

@luisobo luisobo closed this as completed Jan 9, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants