sebastien.rouif
10/05/2018, 2:16 PMgiven to describe the context. I had a look at the migration steps on https://spekframework.org/migration/#given-on-it it feels like the Given in the Scenario is the equivalent of the `given`(s) but it doesn’t seem like I can chain them. Am i correct ?sebastien.rouif
10/05/2018, 2:58 PMgroup{
group{
group{
test{}
test{}
}
}
}raniejade
10/06/2018, 3:26 AMdescribe/context/itsebastien.rouif
10/08/2018, 8:18 AMdescribe/context/it you can have nested describe or context but the it seems weird as it encapsulates the when and the test cf one of the example :
it("should throw when first is invoked") {
assertFailsWith(NoSuchElementException::class) {
set.first()
}
}raniejade
10/08/2018, 8:48 AMgiven/when/then if nesting is allowed?sebastien.rouif
10/08/2018, 9:39 AMwhen("first is invoked") it("should throw")raniejade
10/10/2018, 10:31 PMcontext('when first is invoked')?sebastien.rouif
10/11/2018, 10:07 AMwhen is not really a context anymore it’s an action I really liked the approach of Spek1 which also forced you to do assertions after the action