You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm sorry you've waited so long for an answer — I don't seem to be receiving any notifications from GitHub.
For all mocked methods, nil is returned unless the given condition is met. My guess is that there's something about your given that doesn't match what your code calls. You are using anything() to match any password argument, so that's fine. Is the code passing empty string for login?
I just wanted to mention that I've had the same problem when the matched-against or returned objects are typedefs. Might give a clue about what's going on?
I've tried to stub the protocol method but it return as nil. Please check the following code.
And I have a object called ClientImplementation that implements Client protocol.
In my testcase, I mock the class like this in setup().
But when i Stub the method it return as nil.
May I know what did i do wrong?
The text was updated successfully, but these errors were encountered: