-
Notifications
You must be signed in to change notification settings - Fork 178
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
Xcode can't find stub or matcher now #28
Comments
@istx25 The |
The missing |
Does this library only support test cases? I am trying to stub network requests in the main target to provide a fake response to network requests/prototype an application. |
@istx25 That's possible, if you're using CocoaPods. You will want to depend on The reason XCTest has it's own stub method, is because those MockingjayProtocol.addStub(uri("/{user}/{repository}"), builder: json(data)) You can make a convenience global stub function as follows: public func stub(matcher:Matcher, builder:Builder) -> Stub {
return MockingjayProtocol.addStub(matcher, builder: builder)
} I'll add a global |
Thanks! |
I'll check this out. :) |
We have jsonData now but now Xcode is complaining that
stub
andmatcher
are unavailable. Not sure why.Ideas?
The text was updated successfully, but these errors were encountered: