Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
def 'Validate user registration'() {
given: 'user data'
def name = "Fulano"
def age = 20
def email = "fulano@mail.test"
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