-
Hello, I am in a tricky situation where I need to pass the mock itself to the return of the mock. My trait:
The code:
The test has the following mock:
Because I cannot find the way to simulate the self.clone for the mock.expect_clone_to_arc(), it is returning something different from the mock, and of course, I get the exception: removing .times(1) will make the test pass but it is not correct. Question:
Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I would like to have a professional opinion (it is my second day with mockAll) on how I solve the issue:
Does it make sense, or there is a better way to do it? |
Beta Was this translation helpful? Give feedback.
I would like to have a professional opinion (it is my second day with mockAll) on how I solve the issue:
Does it make sense, or there is a better way to do it?