Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Unable to return a mock from another mock #9

Closed
ftokarev opened this Issue · 0 comments

2 participants

@ftokarev

The code:
```val child = mock[Child]
val parent = mock[Parent]
parent expects 'getChild returns child


results in:
```com.borachio.ExpectationException: Unexpected: 'toString
  at com.borachio.AbstractMockFactory$class.verifyExpectations(AbstractMockFactory.scala:35)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.