Skip to content

Instantly share code, notes, and snippets.

@bodiam
Created August 3, 2014 19:59
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 bodiam/9c8814534c97863cace6 to your computer and use it in GitHub Desktop.
Save bodiam/9c8814534c97863cace6 to your computer and use it in GitHub Desktop.
void "test filter with find on name"() {
setup:
new Conference(
name: 'test',
startdate: new Date()
).save(flush: true)
expect:
service.filterConferences(new FilterCommand(name: name)).size() == expected
where:
name || expected
"te" || 1
"test" || 1
"noname" || 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment