Skip to content

Instantly share code, notes, and snippets.

@mkonicek
Last active December 10, 2015 21:39
Show Gist options
  • Save mkonicek/4496745 to your computer and use it in GitHub Desktop.
Save mkonicek/4496745 to your computer and use it in GitHub Desktop.
class AuthenticationServiceSpec extends WordSpec with MustMatchers {
“only accept valid username and password” in {
val srv = new AuthenticationService
srv.authenticate("martin", "password") must be (true)
srv.authenticate("martin", "wrong-password") must be (false)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment