Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
trait Context extends Scope with After {
val person = Person(carId = None).save() // creating data for test
val car = Car(color = "green", ownerId = None).save()
override def after: Any = {
// Clean db after test.
person.destroy()
car.destroy()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment