dmcg
11/05/2018, 2:33 PMmapFixture
or fixture_
. In return you should now be able to not set a fixture in an outer context provided that there are no befores, afters or tests
@TestFactory fun `copes with no fixture if context has no operations`() = junitTests<Pair<Int, String>> {
context("supplies the fixture") {
fixture {
42 to "the answer"
}
test("test") {
assertEquals(42, this.first)
}
}
}