These are chat archives for etorreborre/specs2

11th
Mar 2017
Eric Torreborre
@etorreborre
Mar 11 2017 05:35
No sorry I never had this before. Can it be a SAM thing?
Adelbert Chang
@adelbertc
Mar 11 2017 07:59
i thought as much
i still dont know the actual reason, but i came across a fix
i replaced a spy(new Foo) with a mock[Foo] followed by a when(foo.method()).thenCallRealMethod as suggested in the error message
still not sure why given Foo is a class not a trait or anything, but yeah :/
Eric Torreborre
@etorreborre
Mar 11 2017 08:00
I see. Honestly I tend to stay away from mocking with Mockito these days. I've seen many cases of impedance mismatch with Scala
Adelbert Chang
@adelbertc
Mar 11 2017 08:11
yeah its frustrating
the only reason im dealing with mocks at all is because i've inherited a legacy codebase
and i was trying to get it to cross-compile to 2.12 :(