Last active
January 24, 2016 18:35
-
-
Save zeryx/261998af5411509fb222 to your computer and use it in GitHub Desktop.
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
"properly accept a new account request" in { | |
Post("account/new", NewAccountForm(100, "zeryx")) ~> check{ | |
val json = parse(responseAs[String]) | |
val check: String = (for{ | |
JString(returnType) <- (json \ "RETURN CODE").toOption | |
} yield returnType).getOrElse("None") | |
("RETURN CODE" -> check) === Frontend.success | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment