Last active
November 23, 2019 15:28
-
-
Save mario-rezende-ifood/35055c67d4ea255921c1085e2d4492fe 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
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