tmg
05/26/2020, 2:49 PMuse {}
. Because this is a resource to an external dependency, I’m mocking it, but I still need to run the code inside that block for my test… How should approach this?
Basically production code:
resource.use {
resource.doSomething()
// ...
//<some code I want to test>
resource.doOtherStuff() //some i call I want to verify, for example
}