Created
August 3, 2014 19:59
-
-
Save bodiam/9c8814534c97863cace6 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
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