Skip to content

Instantly share code, notes, and snippets.

@mhshams
Created April 21, 2014 10:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mhshams/11138714 to your computer and use it in GitHub Desktop.
Save mhshams/11138714 to your computer and use it in GitHub Desktop.
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