Skip to content

Instantly share code, notes, and snippets.

@zeryx
Last active January 24, 2016 18:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zeryx/261998af5411509fb222 to your computer and use it in GitHub Desktop.
Save zeryx/261998af5411509fb222 to your computer and use it in GitHub Desktop.
"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