Created
January 21, 2013 14:47
-
-
Save hhariri/4586574 to your computer and use it in GitHub Desktop.
Spek Example
This file contains hidden or 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
given("a calculator", { | |
val calculator = Calculator() | |
on("calling sum with two numbers", { | |
val sum = calculator.sum(2, 3) | |
it("should return the sum of the two numbers", { | |
shouldEqual(5, sum) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment