Skip to content

Instantly share code, notes, and snippets.

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/3cac004b5e5626de5a67293c233232e1 to your computer and use it in GitHub Desktop.
Save anatolyra/3cac004b5e5626de5a67293c233232e1 to your computer and use it in GitHub Desktop.
class MyTestClass extends WordSpec with TestDataSupport {
"My service" should {
"set the owner of the car" in testContext { testData =>
val service = new Service
service.setCarOwner(carId = testData.car.id, ownerId = testData.person.id)
service.getPerson(testData.person.id).carId shouldEqual Some(testData.car.id)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment