hastebrot
11/05/2015, 8:01 PMclass ConcreteSpec : AbstractSpec({
describe("compare numbers") {
beforeEach {
context["other"] = 12
}
it("should not be equal") {
assert(14 != context["other"])
}
}
})
We could use beforeEach(), but this makes problems with scoped values. A hashmap like context["other"] in the above code doesn't make it better.