https://kotlinlang.org logo
d

dmcg

11/04/2018, 9:18 PM
The previous API had
Copy code
fun fixture(factory: () -> F)
fun modifyFixture(block: F.() -> Unit)
fun replaceFixture(transform: F.() -> F)
fun deriveFixture(transform: PF.() -> F)
rather than just (as now)
Copy code
fun fixture(factory: ParentF.() -> F)
fun modifyFixture(operation: F.() -> Unit) = before(operation)
I think that if I return to the previous one, I can support deferring the fixture setting until a context actually needs it (has tests, or befores or afters)