Skip to content

Instantly share code, notes, and snippets.

@WadeWaldron
Last active August 28, 2015 15:23
Show Gist options
  • Save WadeWaldron/37a3c54c75e58d96c9f1 to your computer and use it in GitHub Desktop.
Save WadeWaldron/37a3c54c75e58d96c9f1 to your computer and use it in GitHub Desktop.
2015-08-28-DataStoreAbstractions-UserStoreTests
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