Created
December 11, 2019 15:55
-
-
Save mariorez/7ede0e2705ae8408935bcd19229c1be8 to your computer and use it in GitHub Desktop.
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
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