-
-
Save anatolyra/e47bfe8119f8b426f24e5267badb009d to your computer and use it in GitHub Desktop.
This file contains 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
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