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

Provide mock instance to stubbing method in mock() #83

Merged
merged 1 commit into from
Oct 3, 2016

Conversation

nhaarman
Copy link
Collaborator

@nhaarman nhaarman commented Oct 3, 2016

This will allow access to the mock inside the stubbing.
For example:

mock<Builder> { mock ->
  on { method() } doReturn mock
}

Fixes #76.

This will allow access to the mock inside the stubbing.
For example:

mock<Builder> { mock ->
  on { method() } doReturn mock
}
@nhaarman nhaarman merged commit 1025568 into dev Oct 3, 2016
@nhaarman nhaarman deleted the stubbing-mock-reference branch October 3, 2016 17:19
@nhaarman nhaarman removed the in-review label Oct 3, 2016
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

Successfully merging this pull request may close these issues.

1 participant