with Kotlin 1.1 and the latest spek master you cou...
# spek
r
with Kotlin 1.1 and the latest spek master you could do:
Copy code
val system1 by memoized { mock<System<TestState>>() }
    val system2 by memoized { mock<System<TestState>>() }
    val entityManager by memoized { mock<EntityManager>() }
    val stateManager by memoized { mock<StateManager<TestState>>() }

    subject {
        World(entityManager, stateManager, TestState.State1, listOf(system1, system2))
    }