Last active
August 28, 2015 15:23
-
-
Save WadeWaldron/37a3c54c75e58d96c9f1 to your computer and use it in GitHub Desktop.
2015-08-28-DataStoreAbstractions-UserStoreTests
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 UserStoreTests extends FreeSpec { | |
def userStore: UserStore | |
“find” - { | |
“should return a User when it exists in the store” in { | |
val user = User() // Let's ignore the details of what a user looks like or how it is constructed. | |
userStore.save(user) | |
val result = userStore.find(user.id) | |
assert(result === user) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment