Last active
December 10, 2015 21:39
-
-
Save mkonicek/4496745 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 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