Skip to content

Instantly share code, notes, and snippets.

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