dmcg
01/24/2021, 8:28 PMgiven
given { Calculator() }
modified with beforeEach
beforeEach {
it.add(2)
}
and replaced with given_
context("sub-context replacing fixture") {
given_ { parentFixture ->
Fixture("green ${parentFixture.fruit}")
}
test2("sees the replaced fixture") {
assertEquals("green banana", fruit)
}
}