Skip to content

Instantly share code, notes, and snippets.

@mario-rezende-ifood
Last active November 23, 2019 15:28
Show Gist options
  • Save mario-rezende-ifood/35055c67d4ea255921c1085e2d4492fe to your computer and use it in GitHub Desktop.
Save mario-rezende-ifood/35055c67d4ea255921c1085e2d4492fe to your computer and use it in GitHub Desktop.
def 'Validate user registration'() {
given: 'user data'
def name = "Fulano"
def age = 20
def email = "[email protected]"
when: 'register the user'
def user = UserService().register(name, age, email)
then:
with(user) {
getName() == name
getAge() == age
getEmail() == email
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment