Last active
June 27, 2018 08:22
-
-
Save anatolyra/3cac004b5e5626de5a67293c233232e1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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