Created
April 21, 2014 10:27
-
-
Save mhshams/11138714 to your computer and use it in GitHub Desktop.
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
class MySpeck extends Specification { | |
def "check sum of two integer"() { | |
given: "we have two integers, 10 and 20" | |
def a = 10 | |
def b = 20 | |
when: "we add these two numbers" | |
def c = a + b | |
then: "the result must be 30" | |
c == 30 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment