Just tried Spek for the first time and am a little...
# spek
t
Just tried Spek for the first time and am a little disappointed. If I say
Copy code
given("5") {
    var number = 5
    on("adding 1") {
        number += 1
        it("should equal 6") {
            assertEquals(6, number)
        }
    }
    on("adding 2") {
        number += 2
        it("should equal 7") {
            assertEquals(7, number)
        }
    }
}
both tests fail with "Actual: 8". Couldn't Spek be changed to give me a new variable each time here? Multiple `on`s seem very limited otherwise.