Yes Gregg you did the right thing and there's a bug somewhere.
However I'm wondering if the easiest thing in your case is to have a
static object somewhere do the setup once and for all for all suites:
object Database {
var isSet = false
// this might require some synchronisation if the execution
// is truly concurrent among specifications
def setup = if (!isSet) {
// do your cleanup
isSet = true
}
}
and in each spec you just write:
class MySpec extends Specification {
Database.setup
// rest of the spec
}
Do you think that would work?
Eric.