spek medium post
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe("end to end flow of typical user") { | |
CurrentAccountImplementation.connect() | |
it("balance starts at 0") { | |
assertThat(CurrentAccountImplementation.getCurrentBalance()).isEqualTo(0) | |
} | |
it("balance is 10 when I add 10") { | |
CurrentAccountImplementation.addMoney(10) | |
assertThat(CurrentAccountImplementation.getCurrentBalance()).isEqualTo(10) | |
} | |
it("balance is 5 when I withdraw 5") { | |
CurrentAccountImplementation.takeMoney(5) | |
assertThat(CurrentAccountImplementation.getCurrentBalance()).isEqualTo(5) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment