Created
January 7, 2020 07:12
-
-
Save adamw/24010eaf0702f14907215e461ea62db0 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
it should "add 1 point" in { | |
// given | |
val updatedPoints = new AtomicInteger(0) | |
val userId = UUID.randomUUID() | |
val stubDao = newStubDaoConstantPoints(15, updatedPoints) | |
// when | |
new Points(stubDao).increase(userId).transact(transactor).unsafeRunSync() | |
// then | |
updatedPoints.get() shouldBe 16 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment