Skip to content

Instantly share code, notes, and snippets.

@kevana
Last active September 16, 2015 23:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevana/7995a1dff9b5a093753c to your computer and use it in GitHub Desktop.
Save kevana/7995a1dff9b5a093753c to your computer and use it in GitHub Desktop.
@Unroll
def "kbaQuizAnswers is invalid when property #field of answer #ansNumber is null"() {
given:
command.kbaQuizAnswers.answers[ansNumber][field] = null
when:
def isValid = command.validate()
then:
!isValid
where:
[ansNumber, field] << [[0, 1, 2, 3], ["questionId", "answerText"]].combinations()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment