Skip to content

Instantly share code, notes, and snippets.

@anatolyra
Created May 11, 2017 10:35
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 anatolyra/e47bfe8119f8b426f24e5267badb009d to your computer and use it in GitHub Desktop.
Save anatolyra/e47bfe8119f8b426f24e5267badb009d to your computer and use it in GitHub Desktop.
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